Вы находитесь на странице: 1из 4

Element Options

Standard Option types:


Align
String (single line)
o Min/max length
Toggle
Zoom Slider (see maps)
Int (input & stepper[stepper is on if step is defined])
o Min/max value
o Step
Text (multiline string)
o Min/max length
Select
Radio
Linker
Select Stepper (new)
Color Slider (new)
o Hex
o Hue
o Saturation
o Brightness
Color Picker
Big Select - style chooser (new)
Active/Inactive (new)
Reordering (new)
Lister (new)
o Add/delete/reorder items
Special Case Option types:
Button Styler (Button_done 2.0 Button Style)
o maybe, might just be able to render a select with images and no labels
Product Connector
Image drag
Upload Image
Image Library Viewer
Image Details
o Caption
Featured Column select
Container Accordion Select
Chart element axis toggle. (5.0 chart/graph hold)
Things to consider:
Images next to select values

o Where will they be saved? Who will define them?


How to detect first time edits, then opening a different view for every time after that
How to disable/enable options when an option is turned off/on (NEW: Team Card_done
2.0 show all off)
How to convert old platform settings to new
Should we get rid of contentFieldProperties?
o Current element options are derived from the contentFieldProperties array and they
are used outside of element options.
o Should we have an independent manifest.json for weebly element options as well as
content field properties?
We need to figure out how to process the saving of each property
o We

The plan:
Rework `manifest.json` for platform elements for linear workflows
Create `manifest.json` for weebly/legacy elements
o Manifest for weebly and legacy elements will have their content
Rename PlatformElementSettingsModel to ElementSettingsModel as all three element
types (legacy, platform, and weebly) will have congruent data.
o Difference in data will be
Change out the templates used by Element Options(needs to be retrieved from theme
design)
o Templates:
SettingsTooltipView
'tpl!platform/element/settings/tooltip-wrap',
'tpl!platform/element/settings/tooltip-wrap-no-external'
GroupTooltipView
'tpl!platform/element/settings/tooltip-group-wrap'
StringItemView
'tpl!platform/element/settings/tooltip-string'
IntegerItemView
tpl!platform/element/settings/tooltip-integer
SelectItemView
tpl!platform/element/settings/tooltip-select
TextItemView
tpl!platform/element/settings/tooltip-text
ColorItemView
tpl!platform/element/settings/tooltip-color
ToggleItemView
tpl!platform/element/settings/tooltip-toggle
CheckboxItemView
tpl!platform/element/settings/tooltip-checkbox
SliderItemView

tpl!platform/element/settings/tooltip-slider
RadioItemView
tpl!platform/element/settings/tooltip-radio
AlignItemView
tpl!platform/element/settings/tooltip-align
HiddenItemView
none
GroupItemView
tpl!platform/element/settings/tooltip-group
Plus all of the new item views and special case views
New
o Back button
Where to get back button text?
o Select Stepper (Form: FIELDS_done 1 Short Text Box)
o Color Sliders (Google Adsense_done 5.1 Border Color)
o Big Select - type chooser (Video_done 0.2 choose type)
o Active/Inactive (social_done 2.0 Manage icons)
o Reordering (Social_done 2.1 reorder accounts)
o Add option (NEW: Accordion_done 2.0 FAQs)
o Edit Section (NEW: Accorion_done 2.2 Edit Section)
o Link item view?
E.g. clicking Upload Image will take you to the Upload
Image view
Special Case
o Button Styler (Button_done 2.0 Button Style)
maybe, might just be able to render a select with images
and no labels
o Product Connector (Product_done 0.3, 0.4, 0.5)
o Image drag upload (Slideshow_done 0.4 add Images)
Clicking Upload Image probably takes you here?
o Upload Image (Image_done 2.3 File)
Maybe just a link that routes to a specific item view
o Upload file (Doc_done 1.0 doc)
Can be a link item view?
o Image Library Viewer (Slideshow_done 0.2 Confirm selection)
o Image Details (Slideshow_done 0.5 single photo editing)
o Featured Column select (NEW: Basic Table - 1.0 featured column)
This can probably be reworked to use a normal select view
o Container Accordion Select (NEW: Container 1.1 secondary
selection)
o Chart element axis toggle. (NEW: chart/graph_hold 5.0 confirm
copy 2)

Вам также может понравиться