Type select options " or not to "

Type select options " or not to "

chopstikchopstik Posts: 14Questions: 5Answers: 0
edited January 2015 in Editor

I'm passing an Editor instance field an array of objects as it describes on http://editor.datatables.net/reference/field/select#

{label: 'Site Asset', name:'SiteAsset.site_asset_item_id', type: 'select', options: siteAssetItemsInt},
"[{"label":"Fire Alarm System","value":18},{"label":"Intruder Alarm System","value":19},{"label":"Access Control","value":20},{"label":"Door Furniture","value":21},{"label":"Flooring","value":22},{"label":"Lighting","value":23},{"label":"Lifts","value":24},{"label":"Plant","value":25},{"label":"Ceilings","value":26},{"label":"Toilets","value":27},{"label":"Any additional Information","value":28}]"

The Editor popup isn't populating the select list with those options and I'm wondering if its the " characters around label & value that might be at fault? Anyone have a similar experience or solution?

Hmmm reading further options 1.4 (was called ipOpts in Editor 1.3-) ipOpts works. Shouldn't the documentation be geared toward stable releases and not betas Alan?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    edited January 2015 Answer ✓

    Good to hear you got it working.

    Yes, the documentation should be geared towards the stable release - select does note this reasonably clearly although I should definitely swap the two around so that ipOpts is noted first - which I will deploy to the site shortly! Apologies for the confusion.

    Allan

This discussion has been closed.