Esempio n. 1
0
 /**
  * To allow the greatest flexibility in the definition of this element,
  * a keyed array is passed.
  *
  * **Required keys**
  * * **content:** An array of HTML strings to display in the content area of the search result.
  *
  * **Optional keys**
  * * **metadata:** Array of HTML strings, or components to display in the meta data area of the resource.
  * * **actions:** An array of Action configurations. See Action.
  * 
  * **Metadata expanded**
  * If a component is passed the following applies.
  *
  * ***Required keys***
  * * **template:** UIKit builder class name|function name. ex. "Other|label", is equivalent to IAE\Other::label()
  * * **config:** The configuration of the component. See the component details for required and optional keys.
  * 
  * @param  [type] $config [description]
  * @return [type]        [description]
  */
 public static function resource($config)
 {
     return Resource::build($config);
 }
Esempio n. 2
0
 public static function build($config)
 {
     return '<div class="usa-grid usa-search-result">' . Resource::build($config) . '</div>';
 }