Skip to main content

Add smartview shortcut tile

Using this option of the assistant, a shortcut type of tile definition could be created.

D2 Smartview has a bunch of shortcut tile implemenation on its own. Visually all the shortcuts look similar except their representation icon. However, each type of shortcut has its own mechanism to react to click event.

caution

Use this option when at least one plugin project exists in the workspace.

Associated questions and their meanings -

  • This shortcut goes to plugin

    To select the plugin project where to create boilerplate associated with creating a widget tile.

  • Type of this shortcut

    Declare the type of this shortcut tile definition. Creating custom widget type can be referred for more information.

  • CSS class name for the icon

    CSS class selector to put in the HTML element hosting the icon for this shortcut tile. Later this same class name could be used to render a specific icon for this tile.

  • Does it require a widget config?

    Shortcut tiles can optionally be backed by a widget config(E.g. Doclist type of shortcut requires a DoclistWidget config). Answering with yes associates this shortcut with a widget config.

  • What this shortcut should do on click?

    Defines what happens when end user clicks on this tile. Can be one of -

    • Execute inline handler
      A JS callback function will implement the action.
    • Execute a behavior
      The action is delegated to a shortcut behavior implementaion. The actual definition of the beahvior is to be coded into the boilerplate created.
    • Expand to perspective
      The action is to open an application scope perspective. Further questions are asked for creating the application scope perspective. Add smartview application scope perspective can be referred for meanings of such questions.