Basic Primitives

Basic Primitives is a 100% JavaScript component library for building general purpose diagrams without manual nodes layout.

  • Increase font size
  • Default font size
  • Decrease font size

Cursor template having item specific context buttons

This example demonstrates how to create item specific context buttons using cursor template. Ideally we have to create individual template for every item type and render buttons depending on template name, for simplicity we added an extra property called buttonsType to every item and use it to render different sets of buttons in cursor. This case is really rare and means that display collection of buttons depends on large set of items options.

  

 

Comments 

 
#3 Andrés Fallas 2015-05-27 09:18
Quoting Administrator:
Quoting Andrés Fallas:
¿This only work onCursorRender or can work onItemRender?

Andres, take a look at item template. Chart supports template specific buttons collection.

Yeah I know that, but if I use the item template buttons, I can't use with zoom template at the same time.
Quote
 
 
#2 Administrator 2015-05-27 06:32
Quoting Andrés Fallas:
¿This only work onCursorRender or can work onItemRender?

Andres, take a look at item template. Chart supports template specific buttons collection.
Quote
 
 
#1 Andrés Fallas 2015-05-26 15:48
¿This only work onCursorRender or can work onItemRender?
Quote
 

Add comment


Do you need?

Diagrams
 

Do you use?

JavaScript Frameworks
 

Do you use?

PDF & Image Export Support