import { KbqSplitButtonModule } from '@koobiq/components/split-button';

KbqSplitButton

componentСкопировать ссылку на KbqSplitButton
@Component({ selector: 'kbq-split-button, [kbq-split-button]' })
class KbqSplitButton extends KbqColorDirective<KbqButtonColor> {
    readonly panelAutoWidth = input<boolean>(false);
    kbqStyle = input<KbqButtonStyleInput | null | undefined>();
    disabled = input<boolean | undefined>();
    readonly color = input<T | null | undefined>();
    get firstDisabled(): boolean;
    get secondDisabled(): boolean;
    get colorClassName(): string;
    setDefaultColor(color: T): void;
}
panelAutoWidthinputСкопировать ссылку на panelAutoWidthboolean

Sets the width of the dropdown to the width of the trigger. Default is false

kbqStyleinputСкопировать ссылку на kbqStyleKbqButtonStyleInput | null | undefined

Visual style of the split button, propagated to every nested button. A button that sets its own kbqStyle keeps it.

Reads back as the resulting host class rather than the value that was set, because the host [class] binding is what consumes it.

disabledinputСкопировать ссылку на disabledboolean | undefined

Whether the split button is disabled. Disabling it disables every nested button; re-enabling it leaves buttons that are disabled through their own input untouched.

colorinputСкопировать ссылку на colorT | null | undefined

Color of the component. A value set in code holds until the input changes, and the default color is used while both are unset or falsy.

firstDisabledСкопировать ссылку на firstDisabledboolean

Whether the leading button is disabled.

secondDisabledСкопировать ссылку на secondDisabledboolean

Whether the trailing button is disabled. Stays false while the split button holds one button.

colorClassNameСкопировать ссылку на colorClassNamestring

current class name of color

setDefaultColor()Скопировать ссылку на setDefaultColor()void

this color will be used as a default value. For example [color]="'' | false | undefined | null".

Предложения по улучшению
Если вы нашли ошибку или хотите доработать статью, создайте запрос на GitHub.