discontinuedPackage thingsboard_pe_client has been discontinued and replaced by thingsboard_client.

CustomMenuItem class abstract

CustomMenuItem

Properties:

  • type - Menu item type
  • visible - Mark if menu item is visible for user
  • name - Name of the menu item
  • icon - URL of the menu item icon. Overrides 'materialIcon'
  • menuItemType - Type of menu item (LINK or SECTION). LINK type means item has no child items, SECTION type should have at least one child
  • linkType - Type of menu item (URL or DASHBOARD)
  • dashboardId - Id of the Dashboard to open, when user clicks the menu item
  • hideDashboardToolbar - Hide the dashboard toolbar
  • url - URL to open in the iframe, when user clicks the menu item
  • setAccessToken - Set the access token of the current user to a new dashboard
  • pages - List of child menu items
Implemented types
Available extensions
Annotations
  • @BuiltValue.new()

Constructors

CustomMenuItem([void updates(CustomMenuItemBuilder b)])
factory

Properties

dashboardId → String?
Id of the Dashboard to open, when user clicks the menu item
no setter
discriminatorValue → String?

Available on MenuItem, provided by the MenuItemDiscriminatorExt extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
hideDashboardToolbar → bool?
Hide the dashboard toolbar
no setter
icon → String?
URL of the menu item icon. Overrides 'materialIcon'
no setter
linkType → CMItemLinkType?
Type of menu item (URL or DASHBOARD)
no setter
Type of menu item (LINK or SECTION). LINK type means item has no child items, SECTION type should have at least one child
no setter
name → String
Name of the menu item
no setter
pages → BuiltList<CustomMenuItem>?
List of child menu items
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
setAccessToken → bool?
Set the access token of the current user to a new dashboard
no setter
type → MenuItemType
Menu item type
no setterinherited
url → String?
URL to open in the iframe, when user clicks the menu item
no setter
visible → bool?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(CustomMenuItemBuilder)) → CustomMenuItem
Rebuilds the instance.
inherited
toBuilder() → CustomMenuItemBuilder
Converts the instance to a builder B.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

serializer → Serializer<CustomMenuItem>
no setter