Skip to content

Profectus / features/clickables/clickable / ClickableOptions

Interface: ClickableOptions ​

An object that configures a Clickable.

Extends ​

Extended by ​

Properties ​

canClick? ​

optional canClick: MaybeRefOrGetter<boolean>

Whether or not the clickable may be clicked.

Defined in ​

profectus/src/features/clickables/clickable.tsx:24


classes? ​

optional classes: MaybeRefOrGetter<Record<string, boolean>>

Dictionary of CSS classes to apply to this feature.

Inherited from ​

VueFeatureOptions.classes

Defined in ​

profectus/src/util/vue.tsx:24


display? ​

optional display: MaybeGetter<Renderable> | { description: MaybeGetter<Renderable>; title: MaybeGetter<Renderable> | undefined; }

The display to use for this clickable.

Type declaration ​

MaybeGetter<Renderable>

{ description: MaybeGetter<Renderable>; title: MaybeGetter<Renderable> | undefined; }

description ​

description: MaybeGetter<Renderable>

The main text that appears in the display.

title? ​

optional title: MaybeGetter<Renderable> | undefined

A header to appear at the top of the display.

Defined in ​

profectus/src/features/clickables/clickable.tsx:26


onClick()? ​

optional onClick: (e?) => void

A function that is called when the clickable is clicked.

Parameters ​

e? ​

MouseEvent | TouchEvent

Returns ​

void

Defined in ​

profectus/src/features/clickables/clickable.tsx:35


onHold? ​

optional onHold: VoidFunction

A function that is called when the clickable is held down.

Defined in ​

profectus/src/features/clickables/clickable.tsx:37


style? ​

optional style: MaybeRefOrGetter<CSSProperties>

CSS to apply to this feature.

Inherited from ​

VueFeatureOptions.style

Defined in ​

profectus/src/util/vue.tsx:26


visibility? ​

optional visibility: MaybeRefOrGetter<boolean | Visibility>

Whether this feature should be visible.

Inherited from ​

VueFeatureOptions.visibility

Defined in ​

profectus/src/util/vue.tsx:22