Skip to content

Latest commit

 

History

History
76 lines (42 loc) · 1.93 KB

stringItemList.md

File metadata and controls

76 lines (42 loc) · 1.93 KB

Components


StringItemList

The StringItemList component allows to specify a list of string values, where each item can be selected from a predefined list.

Use the buttons and combo boxes to edit the entries of the list:

  • Add entry
  • Delete entry
  • Move entry up
  • Move entry down

Source code

./src/components/list/treezStringItemList.js

Test

./test/components/list/treezStringItemList.test.js

Demo

./demo/components/list/treezStringItemListDemo.html

Construction

    ...
    sectionContent.append('treez-string-item-list')
		  .label('String item list:')		  
      		  .attr('options','["a","b","c","d"]')
		  .value('["a","b","c"]')		
		  .bindValue(this, () => this.modeList);	
   ...

JavaScript Attributes

options

The array of available string values/items, e.g. ['a','b','c','d'].

value

The array of specified string values/items, e.g. ['a','b','c'].

Inherited attributes

Also see the attributes that are inherited from LabeledTreezElement.

HTML String Attributes

options

A string that can be evaluated to an array of strings and represents the available values/items, e.g. '["a","b","c","d"]'

value

A string that can be evaluated to an array of strings and represents the selected values/items, e.g. '["a","b","c"]'

Inherited attributes

Also see the attributes that are inherited from LabeledTreezElement.


SymbolStyle