ducks.toolbar.Actions.d.ts Maven / Gradle / Ivy
The newest version!
import React from 'react'
import { Action } from '../Action'
import { RegisterButtonProps } from './Toolbar'
export interface ToolbarCommon {
key: string
buttonId: string
}
export interface ChangeButtonVisibilityPayload extends ToolbarCommon {
visible: boolean
}
export interface ChangeButtonTitlePayload extends ToolbarCommon {
title: string
}
export interface ChangeButtonCountPayload extends ToolbarCommon {
count: number
}
export interface ChangeButtonSizePayload extends ToolbarCommon {
size: string
}
export interface ChangeButtonColorPayload extends ToolbarCommon {
color: string
}
export interface ChangeButtonHintPayload extends ToolbarCommon {
hint: string
}
export interface ChangeButtonMessagePayload extends ToolbarCommon {
message: string
}
export interface ChangeButtonIconPayload extends ToolbarCommon {
icon: string
}
export interface ChangeButtonClassPayload extends ToolbarCommon {
className: string
}
export interface ChangeButtonStylePayload extends ToolbarCommon {
style: React.CSSProperties
}
export interface ChangeButtonStyleDisabledPayload extends ToolbarCommon {
disabled: boolean
}
export interface PrintPayload {
url: string
pathMapping: string
queryMapping: string
printable: boolean
type: string
keepIndent: boolean
documentTitle: string
loader: boolean
loaderText: string
base64: boolean
}
export type ChangeButtonVisibility = Action
export type ChangeButtonTitle = Action
export type ChangeButtonCount = Action
export type ChangeButtonSize = Action
export type ChangeButtonColor = Action
export type ChangeButtonHint = Action
export type ChangeButtonMessage = Action
export type ChangeButtonIcon = Action
export type ChangeButtonClass = Action
export type ChangeButtonStyle = Action
export type ChangeButtonDisabled = Action
export type ToggleButtonParam = Action
export type RegisterButton = Action
export type Print = Action