Skip to content

Latest commit

 

History

History
66 lines (37 loc) · 1.5 KB

stringList.md

File metadata and controls

66 lines (37 loc) · 1.5 KB

Components


StringList

The StringList component allows to specify a list of string values.

Use the buttons and text fields to edit the entries of the list:

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

Source code

./src/components/list/treezStringList.js

Test

./test/components/list/treezStringList.test.js

Demo

./demo/components/list/treezStringListDemo.html

Construction

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

JavaScript Attributes

value

An array of strings, e.g. ['a','b','c','d'].

Inherited attributes

Also see the attributes that are inherited from LabeledTreezElement.

HTML String Attributes

value

A string that can be evaluated to an array of strings, e.g. '["a","b","c","d"]'

Inherited attributes

Also see the attributes that are inherited from LabeledTreezElement.


StringItemList