Represents base class for all tool actions in toolbar

Inheritance

object
Implements
  • IComponent
  • IHandleEvent
  • IHandleAfterRender
  • JsonSerializable
  • IDisposable

constructor

public IgbToolAction()

Returns IgbToolAction

Inherited from: BaseRendererElement

[Inject]
protected IIgniteUIBlazor IgBlazor { get; set; }

Inherited from: BaseRendererElement

public bool IsComponentRooted { get; }

Inherited from: BaseRendererElement

protected virtual bool UseDirectRender { get; }

Inherited from: BaseRendererElement

[Parameter]
public RenderFragment ChildContent { get; set; }

Inherited from: BaseRendererElement

protected virtual bool SupportsVisualChildren { get; }

Inherited from: BaseRendererElement

[Parameter]
public string Name { get; set; }

Inherited from: BaseRendererElement

public object Parent { get; }

Inherited from: BaseRendererElement

protected virtual string MethodTarget { get; }

Inherited from: BaseRendererElement

protected object CurrParent { get; }
[Parameter]
public string AccentColor { get; set; }

Gets the sub actions associated with this tool action.

public IgbToolActionCollection Actions { get; protected set; }
[Parameter]
public string ActualAccentColor { get; set; }
public IgbToolActionCollection ActualActions { get; }

Gets the actual background used by the tool action.

[Parameter]
public string ActualBackground { get; set; }

Gets the resolved display density to use for the action.

[Parameter]
public ControlDisplayDensity ActualDensity { get; set; }

Gets the actual label text color when the tool is disabled.

[Parameter]
public string ActualDisabledTextColor { get; set; }
[Parameter]
public string ActualHighlightColor { get; set; }
[Parameter]
public double ActualHighlightRadius { get; set; }
[Parameter]
public double ActualHighlightWidth { get; set; }

Gets the actual hover background used by the tool action.

[Parameter]
public string ActualHoverBackground { get; set; }

Gets the actual icon fill color.

[Parameter]
public string ActualIconFill { get; set; }

Gets the actual icon height used.

[Parameter]
public double ActualIconHeight { get; set; }

Gets the actual icon stroke color.

[Parameter]
public string ActualIconStroke { get; set; }

Gets the actual icon width used.

[Parameter]
public double ActualIconWidth { get; set; }
[Parameter]
public double ActualPaddingBottom { get; set; }
[Parameter]
public double ActualPaddingLeft { get; set; }
[Parameter]
public double ActualPaddingRight { get; set; }
[Parameter]
public double ActualPaddingTop { get; set; }
[Parameter]
public int ActualSubPanelRowHeight { get; set; }

Gets the actual label text color.

[Parameter]
public string ActualSubtitleTextColor { get; set; }

Gets the actual label text color.

[Parameter]
public string ActualTextColor { get; set; }

Gets or sets the Id of the action that this action will be inserted after.

[Parameter]
public string AfterId { get; set; }

Gets or sets the background color of the tool action.

[Parameter]
public string Background { get; set; }

Gets or sets the Id of the action that this action will be inserted before.

[Parameter]
public string BeforeId { get; set; }

Gets or sets if the tool action will close its parent dropdown when executed by the user.

[Parameter]
public bool CloseOnExecute { get; set; }
[Parameter]
public string CommandArgument { get; set; }
[Parameter]
public object CommandArgumentValue { get; set; }
[Parameter]
public string CommandId { get; set; }
public IgbToolActionCollection ContentActions { get; }

Gets the context bindings for this tool action.

public IgbToolContextBindingCollection ContextBindings { get; set; }

Gets or sets the display density to use for the action.

[Parameter]
public ControlDisplayDensity Density { get; set; }

Gets or sets the label text color when the tool is disabled.

[Parameter]
public string DisabledTextColor { get; set; }
[Parameter]
public string FontFamily { get; set; }
[Parameter]
public double FontSize { get; set; }
[Parameter]
public string FontStyle { get; set; }
[Parameter]
public string FontWeight { get; set; }

Gets or sets the height to use for this tool action.

[Parameter]
public double Height { get; set; }
[Parameter]
public string HighlightColor { get; set; }
[Parameter]
public double HighlightRadius { get; set; }
[Parameter]
public double HighlightWidth { get; set; }

Gets or sets the hover background for this tool action.

[Parameter]
public string HoverBackground { get; set; }
[Parameter]
public string IconCollectionName { get; set; }

Gets or sets the icon fill color.

[Parameter]
public string IconFill { get; set; }

Gets or sets the icon fill colors.

[Parameter]
public string IconFillColors { get; set; }

Gets or sets the height of the icon.

[Parameter]
public double IconHeight { get; set; }
[Parameter]
public string IconName { get; set; }

Gets or sets the icon stroke color.

[Parameter]
public string IconStroke { get; set; }

Gets or sets the icon stroke colors.

[Parameter]
public string IconStrokeColors { get; set; }

Gets or sets the icon viewbox width.

[Parameter]
public double IconStrokeWidth { get; set; }

Gets or sets the icon viewbox height.

[Parameter]
public double IconViewBoxHeight { get; set; }

Gets or sets the icon viewbox left.

[Parameter]
public double IconViewBoxLeft { get; set; }

Gets or sets the icon viewbox top.

[Parameter]
public double IconViewBoxTop { get; set; }

Gets or sets the icon viewbox width.

[Parameter]
public double IconViewBoxWidth { get; set; }

Gets or sets the width of the icon.

[Parameter]
public double IconWidth { get; set; }
[Parameter]
public bool IsDisabled { get; set; }
[Parameter]
public bool IsHighlighted { get; set; }

Sets to the Id of the action that this action will overlay itself on to.

[Parameter]
public string OverlayId { get; set; }
[Parameter]
public double PaddingBottom { get; set; }
[Parameter]
public double PaddingLeft { get; set; }
[Parameter]
public double PaddingRight { get; set; }
[Parameter]
public double PaddingTop { get; set; }
[Parameter]
public string ParentId { get; set; }
protected override string ParentTypeName { get; }

Gets or sets the height to use for the sub panel if different than default

[Parameter]
public int SubPanelRowHeight { get; set; }

Gets or sets the subtitle of the tool.

[Parameter]
public string Subtitle { get; set; }
[Parameter]
public string SubtitleFontFamily { get; set; }
[Parameter]
public double SubtitleFontSize { get; set; }
[Parameter]
public string SubtitleFontStyle { get; set; }
[Parameter]
public string SubtitleFontWeight { get; set; }

Gets or sets the label text color.

[Parameter]
public string SubtitleTextColor { get; set; }

Gets or sets the label text color.

[Parameter]
public string TextColor { get; set; }

Gets or sets the title of the tool.

[Parameter]
public string Title { get; set; }

Gets or sets the title horizontal alignment.

[Parameter]
public HorizontalAlignment TitleHorizontalAlignment { get; set; }
[CascadingParameter(Name = "ToolActionParent")]
protected BaseRendererElement ToolActionParent { get; set; }
[CascadingParameter(Name = "ToolbarParent")]
protected BaseRendererControl ToolbarParent { get; set; }
public override string Type { get; }

Gets or sets the tool action visibility.

[Parameter]
public Visibility Visibility { get; set; }

Gets or sets the width to use for this tool action.

[Parameter]
public double Width { get; set; }

Inherited from: BaseRendererElement

protected string _name

Inherited from: BaseRendererElement

protected Dictionary<Type, Dictionary<string, FieldInfo>> eventCallbacksCache

Inherited from: BaseRendererElement

protected string _cachedSerializedContent

Inherited from: BaseRendererElement

protected virtual void EnsureModulesLoaded()

Returns any

Inherited from: BaseRendererElement

protected override void BuildRenderTree(RenderTreeBuilder builder)

Parameters

  • builder: RenderTreeBuilder

Returns any

OnElementNameChanged(BaseRendererElement, string, string)

Section titled "OnElementNameChanged(BaseRendererElement, string, string)"

Inherited from: BaseRendererElement

protected void OnElementNameChanged(BaseRendererElement element, string oldName, string newName)

Parameters

  • element: BaseRendererElement
  • oldName: string
  • newName: string

Returns any

InvokeMethod(string, object[], string[], ElementReference[])

Section titled "InvokeMethod(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererElement

protected Task<object> InvokeMethod(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

InvokeMethodSync(string, object[], string[], ElementReference[])

Section titled "InvokeMethodSync(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererElement

protected object InvokeMethodSync(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

InvokeMethodHelper(string, string, object[], string[], ElementReference[])

Section titled "InvokeMethodHelper(string, string, object[], string[], ElementReference[])"

Inherited from: BaseRendererElement

protected Task<object> InvokeMethodHelper(string target, string methodName, object[] arguments, string[] types, ElementReference[] nativeElements)

Parameters

  • target: string
  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

InvokeMethodHelperSync(string, string, object[], string[], ElementReference[])

Section titled "InvokeMethodHelperSync(string, string, object[], string[], ElementReference[])"

Inherited from: BaseRendererElement

protected object InvokeMethodHelperSync(string target, string methodName, object[] arguments, string[] types, ElementReference[] nativeElements)

Parameters

  • target: string
  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

Inherited from: BaseRendererElement

protected bool IsPropDirty(string propertyName)

Parameters

  • propertyName: string

Returns any

Serialize(SerializationContext, string)

Section titled "Serialize(SerializationContext, string)"

Inherited from: BaseRendererElement

public void Serialize(SerializationContext context, string propertyName = null)

Parameters

  • context: SerializationContext
  • propertyName: string

Returns any

Inherited from: BaseRendererElement

public string Serialize()

Returns any

Inherited from: BaseRendererElement

protected void EnsureValid()

Returns any

FromEventJson(BaseRendererControl, Dictionary<string, object>)

Section titled "FromEventJson(BaseRendererControl, Dictionary<string, object>)"

Inherited from: BaseRendererElement

protected virtual void FromEventJson(BaseRendererControl control, Dictionary<string, object> args)

Parameters

  • control: BaseRendererControl
  • args: Dictionary

Returns any

ToEventJson(BaseRendererControl, Dictionary<string, object>)

Section titled "ToEventJson(BaseRendererControl, Dictionary<string, object>)"

Inherited from: BaseRendererElement

protected virtual void ToEventJson(BaseRendererControl control, Dictionary<string, object> args)

Parameters

  • control: BaseRendererControl
  • args: Dictionary

Returns any

SetResourceStringAsync(string, string, string)

Section titled "SetResourceStringAsync(string, string, string)"

Inherited from: BaseRendererElement

protected Task<object> SetResourceStringAsync(string grouping, string id, string value)

Parameters

  • grouping: string
  • id: string
  • value: string

Returns any

SetResourceStringAsync(string, string)

Section titled "SetResourceStringAsync(string, string)"

Inherited from: BaseRendererElement

protected Task<object> SetResourceStringAsync(string grouping, string json)

Parameters

  • grouping: string
  • json: string

Returns any

public virtual void CloseSubmenu()

Returns any

public virtual Task CloseSubmenuAsync()

Returns any

public void Dispose()

Returns any

public string ExportSerializedVisualData()

Returns any

public Task<string> ExportSerializedVisualDataAsync()

Returns any

public virtual object ExportVisualData()

Returns any

public virtual Task<object> ExportVisualDataAsync()

Returns any

public override object FindByName(string name)

Parameters

  • name: string

Returns any

protected override Task OnInitializedAsync()

Returns any

public virtual void OpenSubMenu()

Returns any

public virtual Task OpenSubMenuAsync()

Returns any

[Parameter]
public EventCallback<IgbToolCommandEventArgs> OnCommand { get; set; }
[Parameter]
public EventCallback<IgbToolActionPerformedEventArgs> Performed { get; set; }
[Parameter]
public string OnCommandScript { get; set; }
[Parameter]
public string PerformedScript { get; set; }