Skip to content

Latest commit

 

History

History
89 lines (52 loc) · 2.52 KB

integer.md

File metadata and controls

89 lines (52 loc) · 2.52 KB

Components


Integer

The Integer component is used to specify an integer number.

Source code

./src/components/number/treezInteger.js

Test

./test/components/number/treezInteger.test.js

Demo

./demo/components/number/treezIntegerDemo.html

Construction

    ...
    sectionContent.append('treez-integer')
		  .label('Integer:')		
		  .value('5')		
		  .bindValue(this, () => this.numberOfUsers);	
   ...

JavaScript Attributes

value

The current value as a number.

min

The minimum value that can be entered (default is Number.MIN_SAFE_INTEGER = -9007199254740991).

max

The maximum value that can be entered (default is Number.MAX_SAFE_INTEGER = 9007199254740991).

Inherited attributes

Also see the attributes that are inherited from LabeledTreezElement.

HTML String Attributes

value

Returns the current value as string.

Setting the attribute does not only work with strings but also without quotes in Google Chrome, e.g.

  • element.setAttribute('value', 5) or
  • <treez-integer value = 5 >

min

The minimum value that can be entered as a string (default is '-9007199254740991').

max

The maximum value that can be entered as a string (default is '9007199254740991').

Inherited attributes

Also see the attributes that are inherited from LabeledTreezElement.


LabeledTreezElement