ToolStrip

Adds supports for [ System.Windows.Forms.ToolStrip](https://msdn.microsoft.com/en-us/library/system.windows.forms.toolstrip(v=vs.110).aspx)

Implementation Details:

Component Selector: 'wm-toolstrip'

Kendo UI Component: Kendo Jquery Menu

Class inheritance

ToolStripComponent extends ControlComponent.

PME Support

Properties

Property

Get/Set

Notify Changes

Details

items: any

Yes

No

Used to return/set the datasource value for the component.

defaultDataUrl: string

No

No

Default URL to call the API and get the data.

url: string

Get

No

Returns the value of the dataUrl if was set, overwise return the defaultDataUrl.

datasource: string

No

No

Saves the data that will be use in the menu.

currentItem: any

No

No

Used to store the item that was clicked.

updateDataUrl: string

Get

No

Gets the property from the model when you want to use other url to fetch the data.

text: string

Yes

Yes

Inherited from ControlComponent see ControlComponent.

name: string

Yes

No

Inherited from ControlComponent see ControlComponent.

enabled: boolean

Yes

No

Inherited from ControlComponent see ControlComponent.

visible: boolean

Yes

No

Inherited from ControlComponent see ControlComponent.

TextImageRelation: Number

No

No

Used in ToolStripLabel and ToolStripButton items to set the image position.

Methods

Method

Supported

Details

ngOnInit: void

Yes

Used to call the applyFetchdata function.

applyFetchdata: void

Yes

Requests the new data from the web Service and update the property items.

Events

Event

Supported

Parameter

Details

Click

Yes

$event: any

Trigger Click event. $event parameter is optional and the $event object vary depending on the type of DOM event.

ItemClicked

Yes

$event: any

Trigger ItemClicked event. $event parameter is optional and the $event object vary depending on the type of DOM event.

Items

Item

Supported

Details

Supported Properties

ToolStripLabel

Yes

Click Event

TextImageRelation

ToolStripComboBox

Yes

Click, SelectedIndexChanged Events

ToolStripSeparator

Yes

ToolStripButton

Yes

Click Event

TextImageRelation

Last updated