You are here

function angularjs_element_info in AngularJS 7

Implements hook_element_info().

File

./angularjs.module, line 310

Code

function angularjs_element_info() {
  $types['ng_select'] = array(
    '#input' => TRUE,
    '#multiple' => FALSE,
    '#theme' => 'ng_select',
    '#theme_wrappers' => array(
      'form_element',
    ),
    '#process' => array(
      'form_process_select',
      'ajax_process_form',
      'angularjs_process_select',
    ),
    '#ng_model' => '',
    // @todo: Add option to look at parents(s) for the controller definition.
    '#ng_controller' => '',
    '#attached' => array(
      'library' => array(),
    ),
  );
  return $types;
}