Select Element

SelectElement

SelectElement Objects

class SelectElement()
element
function element(name: String,fields: [{field: field, alias:alias}]) -> 'Object'

Arguments:

  • name String - Indicates the datastream to show
  • fields [{field: field, alias:alias}] - The fields that you want to show from that datastream

Returns:

  • Object - This returns a json with the object element built.

Example:

 SE.element('provision.device.identifier', ['value'], 'identifier')
 returns:
 {
     name : 'provision.device.identifier',
     fields: ['value'],
     alias: 'identifier
 }

 SE.element('provision.device.identifier', ['value'])
 returns:
 {
     name : 'provision.device.identifier',
     fields: ['value']
 }