Home Reference Source
public class | source

SimpleHeader

Extends:

react~React.Component → SimpleHeader

Хедер-плагин

Example:

//каждый item состоит из id {string}, label {string}, type {string} ('text', 'type' или 'dropdown'),
//href {string}(для ссылок), linkType {string}(для ссылок; значения - 'outer' или 'inner')
//subItems {array} (массив из элементов дропдауна)
<SimpleHeader  items = { [
    {
      id: 'link',
      label: 'link',
      href: '/test',
      type: 'link',
    },
    {
      id: 'dropdown',
      label: 'dropdown',
      type: 'dropdown',
      subItems: [{id: 'test1',label: 'test1', href: '/'}, {id: 'test123', label: 'test1', href: '/'}]
    },
    {
      id: 'test',
      label: 'test',
      type: 'dropdown',
      subItems: [{id: 'test123s',label: 'test1', href: '/'}, {id: 'test12asd3',label: 'test1', href: '/'}]
    }
    ] }
    extraItems = { [
    {
      id: "213",
      label: 'ГКБ №7',
      type: 'text',
    },
    {
      id: "2131",
      label: 'Постовая медсестра',
      type: 'dropdown',
      subItems: [{label: 'test1', href: '/', linkType: 'inner'}, {label: 'test1', href: '/'}]
    },
    {
      id: "2131",
      label: 'admin',
      type: 'dropdown',
      subItems: [{label: 'test1', href: '/'}, {label: 'test1', href: '/'}]
    }
    ] }
   brand="N2O"
   brandImage= "http://getbootstrap.com/assets/brand/bootstrap-solid.svg"
   activeId={"test123"}/>

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

state: {"isOpen": *}

Method Summary

Public Methods
public

render(): *

public

toggle()

Public Constructors

public constructor() source

Public Members

public state: {"isOpen": *} source

Public Methods

public render(): * source

Return:

*

public toggle() source