Web component: j-Paramaters


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Parameters

This component can changed internal parameters.

Configuration:

  • dateformat {String} optional, a date format (default: yyyy-MM-dd)
  • search {String} optional, placeholder for search input (default: Search)
  • height {Number} optional, a height of the element (default: undefined)
  • parent {String} optional, jQuery selector for auto setup of height (can be window, parent or custom)

Data declaration:

var form = [];
form.push({ name: 'user.firstname', type: 'string', value: 'Peter Sirka' });
form.push({ name: 'user.age', type: 'number', value: 33 });
form.push({ name: 'user.birth', type: 'date', value: NOW });
form.push({ name: 'user.newsletter', type: 'boolean', value: true });

Allowed types in data:

  • string
  • boolean
  • number
  • date

Author

Browser‘s Save action performs Preview