Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Dec 14, 2015
1 parent 957c3ba commit b585e04
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions options/built-in-option-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,8 @@ Addable box with options.
array(
'option_1' => 'value 1',
'option_2' => 'value 2',
)
),
// ...
),
'attr' => array( 'class' => 'custom-class', 'data-foo' => 'bar' ),
'label' => __('Label', 'fw'),
Expand Down Expand Up @@ -870,14 +871,18 @@ Popup with options.
array(
'type' => 'popup',
'value' => array(
'option_1' => 'value 1',
'option_2' => 'value 2',
),
'label' => __('Popup', 'fw'),
'desc' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'fw'),
'popup-title' => __('Popup Title', 'fw'),
'button' => __('Edit', 'fw'),
'popup-title' => null,
'size' => 'small', // small, medium, large
'popup-options' => array(
'demo_text' => array(
'option_1' => array(
'label' => __('Text', 'fw'),
'type' => 'text',
'value' => 'Demo text value',
Expand All @@ -887,7 +892,7 @@ Popup with options.
__('Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium', 'fw')
),
),
'demo_textarea' => array(
'option_2' => array(
'label' => __('Textarea', 'fw'),
'type' => 'textarea',
'value' => 'Demo textarea value',
Expand All @@ -910,6 +915,13 @@ Addable popup with options.
array(
'type' => 'addable-popup',
'value' => array(
array(
'option_1' => 'value 1',
'option_2' => 'value 2',
),
// ...
),
'label' => __('Addable Popup', 'fw'),
'desc' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'fw'),
'template' => '{{- demo_text }}',
Expand All @@ -919,7 +931,7 @@ Addable popup with options.
'add-button-text' => __('Add', 'fw'),
'sortable' => true,
'popup-options' => array(
'demo_text' => array(
'option_1' => array(
'label' => __('Text', 'fw'),
'type' => 'text',
'value' => 'Demo text value',
Expand All @@ -929,7 +941,7 @@ Addable popup with options.
__('Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium', 'fw')
),
),
'demo_textarea' => array(
'option_2' => array(
'label' => __('Textarea', 'fw'),
'type' => 'textarea',
'value' => 'Demo textarea value',
Expand Down

0 comments on commit b585e04

Please sign in to comment.