2022-09-12 07:13:52 +00:00
const SpeedDialProps = [
{
2022-09-14 14:26:41 +00:00
name : 'model' ,
type : 'object' ,
default : 'any' ,
description : 'MenuModel instance to define the action items.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'visible' ,
type : 'boolean' ,
default : 'false' ,
description : 'Specifies the visibility of the overlay.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'direction' ,
type : 'string' ,
default : 'up' ,
2022-09-12 07:13:52 +00:00
description : "Specifies the opening direction of actions. Valid values are 'up', 'down', 'left', 'right', 'up-left', 'up-right', 'down-left' and 'down-right'"
} ,
{
2022-09-14 14:26:41 +00:00
name : 'transitionDelay' ,
type : 'number' ,
default : '30' ,
description : 'Transition delay step for each action item.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'type' ,
type : 'string' ,
default : 'linear' ,
description : 'Specifies the opening type of actions.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'radius' ,
type : 'number' ,
default : '0' ,
description : 'Radius for *circle types.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'mask' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether to show a mask element behind the speeddial'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'disabled' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether the component is disabled.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'hideOnClickOutside' ,
type : 'boolean' ,
default : 'true' ,
description : 'Whether the actions close when clicked outside.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'buttonClass' ,
type : 'string' ,
default : 'null' ,
description : 'Style class of the button element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'maskClass' ,
type : 'string' ,
default : 'null' ,
description : 'Style class of the mask element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'maskStyle' ,
type : 'object' ,
default : 'null' ,
description : 'Inline style of the mask element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showIcon' ,
type : 'string' ,
default : 'pi pi-plus' ,
description : 'Show icon of the button element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'hideIcon' ,
type : 'string' ,
default : 'null' ,
description : ' Hide icon of the button element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'rotateAnimation' ,
type : 'boolean' ,
default : 'true' ,
description : 'Defined to rotate showIcon when hideIcon is not present.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'class' ,
type : 'object' ,
default : 'null' ,
description : 'Style class of the element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'style' ,
type : 'any' ,
default : 'null' ,
description : 'Style class of the element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'tooltipOptions' ,
type : 'object' ,
default : 'null' ,
2022-09-12 07:13:52 +00:00
description : "Whether to display the tooltip on items. The modifiers of tooltip can be used like an object in it. Valid keys are 'event' and 'position'."
2023-04-24 12:44:53 +00:00
} ,
{
name : 'pt' ,
type : 'any' ,
default : 'null' ,
description : 'Uses to pass attributes to DOM elements inside the component.'
2022-09-12 07:13:52 +00:00
}
] ;
const SpeedDialEvents = [
{
2022-09-14 14:26:41 +00:00
name : 'click' ,
description : 'Fired when the button element clicked.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'show' ,
description : 'Fired when the actions are visible.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'hide' ,
description : 'Fired when the actions are hidden.'
}
2022-09-12 07:13:52 +00:00
] ;
const SpeedDialSlots = [
{
2022-09-14 14:26:41 +00:00
name : 'item' ,
description : 'Custom content for the item'
2022-09-12 07:13:52 +00:00
} ,
{
2023-04-18 13:42:36 +00:00
name : 'button' ,
description : 'Custom button template.'
} ,
{
name : 'icon' ,
description : 'Custom icon template.'
2022-09-12 07:13:52 +00:00
}
] ;
module . exports = {
speeddial : {
2022-09-14 14:26:41 +00:00
name : 'SpeedDial' ,
description : 'When pressed, a floating action button can display multiple primary actions that can be performed on a page.' ,
2022-09-12 07:13:52 +00:00
props : SpeedDialProps ,
events : SpeedDialEvents ,
slots : SpeedDialSlots
}
2022-09-14 14:26:41 +00:00
} ;