Skip to content
David Ryan edited this page Jan 29, 2018 · 2 revisions
'part_id' => array(
    'label' => 'Part Display Text Label'
    'part'  => '<# special_string_slug #>'
)

part slugs:

  • part
  • input
  • text
  • color
  • number
  • email
  • url
  • password
  • textarea
  • editor
  • select
  • multiselect
  • checkbox
  • toggle_switch
  • radio_buttons
  • media
  • include_partial
  • markdown

More part options

input_type

string used to inject into HTML attribute for <input> and other fields

field_type

addl. string used to inject into HTML attribute for <input> and other fields (text and color fields are both input type text)

description

string description shown with field

default_value

used to preset field to existing/new value

classes

HTML classes used on vital part wrapper

atts

HTML attributes looped onto attribute

data_store

Simple boolean indicating wither part stores data or not

field_before

A way to include additional markup before an option

field_after

A way to include addl markup after an option

update_type

An internal method set once update completes to report back to main class.

Addl. Attributes

cols and rows on `textarea fields