File

src/app/modules/shared/interfaces/action.ts

Description

Action Interface has few combination to send button or icon
1)right is for right side of section.
2)left is for left side of section.

Properties

left
left: { displayType?: string; classes?: string; clickable?: boolean; actionType?: string; icon?: string...
Type : { displayType?: string; classes?: string; clickable?: boolean; actionType?: string; icon?: string...

left side of section
1)displayType can be icon or rating
2)classes of type string for icon
3)clickable of type boolean if icon or button is clickable
4)actionType is of string

right
right: { displayType?: string; classes?: string; text?: string; clickable?: boolean; actionType?: string...
Type : { displayType?: string; classes?: string; text?: string; clickable?: boolean; actionType?: string...

right side of section
1)displayType can be icon or button
2)classes of type string for icon and button
3)text of type string for button
4)clickable of type boolean if icon or button is clickable
5)actionType is of string

export interface IAction {
    /**
     * right side of section
     * 1)displayType can be icon or button
     * 2)classes of type string for icon and button
     * 3)text of type string for button
     * 4)clickable of type boolean if icon or button is clickable
     * 5)actionType is of string
     */
    right?: {
        displayType?: string | 'icon' | 'button'
        classes?: string;
        text?: string;
        clickable?: boolean;
        actionType?: 'delete' | string;
    };
    /**
     * left side of section
     * 1)displayType can be icon or rating
     * 2)classes of type string for icon
     * 3)clickable of type boolean if icon or button is clickable
     * 4)actionType is of string
     */

    left?: {
        displayType?: string | 'icon' | 'rating '
        classes?: string;
        clickable?: boolean;
        actionType?: 'share' | 'shareComponent' | string  ;
        icon?: string;
        mimeType?: string;
        identifier?: string;
        contentType?: string
    };
}

results matching ""

    No results matching ""