model

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RawJson

func RawJson(input any) any

RawJson create components from amis raw json

Types

type AnchorNavSection

type AnchorNavSection Schema

AnchorNavSection is an anchor area renderer. Documentation: https://aisuda.bce.baidu.com/amis/zh-CN/components/anchor-nav

func NewAnchorNavSection

func NewAnchorNavSection() AnchorNavSection

func (AnchorNavSection) Body

func (a AnchorNavSection) Body(value ...any) AnchorNavSection

Body sets the content.

func (AnchorNavSection) Children

func (a AnchorNavSection) Children(value string) AnchorNavSection

Children sets the child nodes.

func (AnchorNavSection) ClassName

func (a AnchorNavSection) ClassName(value string) AnchorNavSection

ClassName sets the container CSS class name.

func (AnchorNavSection) Disabled

func (a AnchorNavSection) Disabled(value bool) AnchorNavSection

Disabled sets whether the component is disabled.

func (AnchorNavSection) DisabledOn

func (a AnchorNavSection) DisabledOn(value string) AnchorNavSection

DisabledOn sets the expression to determine if the component is disabled.

func (AnchorNavSection) EditorSetting

func (a AnchorNavSection) EditorSetting(value string) AnchorNavSection

EditorSetting sets the editor configuration, which can be ignored at runtime.

func (AnchorNavSection) Hidden

func (a AnchorNavSection) Hidden(value bool) AnchorNavSection

Hidden sets whether the component is hidden.

func (AnchorNavSection) HiddenOn

func (a AnchorNavSection) HiddenOn(value string) AnchorNavSection

HiddenOn sets the expression to determine if the component is hidden.

func (AnchorNavSection) Href

Href sets the anchor link.

func (AnchorNavSection) ID

ID sets the unique component ID, mainly used for logging.

func (AnchorNavSection) OnEvent

func (a AnchorNavSection) OnEvent(value any) AnchorNavSection

OnEvent sets the event action configuration.

func (AnchorNavSection) Static

func (a AnchorNavSection) Static(value bool) AnchorNavSection

Static sets whether the component is displayed statically.

func (AnchorNavSection) StaticClassName

func (a AnchorNavSection) StaticClassName(value string) AnchorNavSection

StaticClassName sets the CSS class name for static display form items.

func (AnchorNavSection) StaticInputClassName

func (a AnchorNavSection) StaticInputClassName(value string) AnchorNavSection

StaticInputClassName sets the CSS class name for static display form item values.

func (AnchorNavSection) StaticLabelClassName

func (a AnchorNavSection) StaticLabelClassName(value string) AnchorNavSection

StaticLabelClassName sets the CSS class name for static display form item labels.

func (AnchorNavSection) StaticOn

func (a AnchorNavSection) StaticOn(value string) AnchorNavSection

StaticOn sets the expression to determine if the component is displayed statically.

func (AnchorNavSection) StaticPlaceholder

func (a AnchorNavSection) StaticPlaceholder(value string) AnchorNavSection

StaticPlaceholder sets the placeholder for static display empty values.

func (AnchorNavSection) StaticSchema

func (a AnchorNavSection) StaticSchema(value string) AnchorNavSection

StaticSchema sets the static schema.

func (AnchorNavSection) Style

func (a AnchorNavSection) Style(value any) AnchorNavSection

Style sets the component style.

func (AnchorNavSection) TestIdBuilder

func (a AnchorNavSection) TestIdBuilder(value string) AnchorNavSection

TestIdBuilder sets the test ID builder.

func (AnchorNavSection) Testid

func (a AnchorNavSection) Testid(value string) AnchorNavSection

Testid sets the test ID.

func (AnchorNavSection) Title

func (a AnchorNavSection) Title(value any) AnchorNavSection

Title sets the navigation text description.

func (AnchorNavSection) UseMobileUI

func (a AnchorNavSection) UseMobileUI(value bool) AnchorNavSection

UseMobileUI sets whether to disable mobile styles at the component level.

func (AnchorNavSection) Visible

func (a AnchorNavSection) Visible(value bool) AnchorNavSection

Visible sets whether the component is visible.

func (AnchorNavSection) VisibleOn

func (a AnchorNavSection) VisibleOn(value string) AnchorNavSection

VisibleOn sets the expression to determine if the component is visible.

type Api

type Api Schema

func NewApi

func NewApi() Api

func (Api) Adaptor

func (b Api) Adaptor(value string) Api

Adaptor processes the response to match the expected format

func (Api) AttachDataToQuery

func (b Api) AttachDataToQuery(value bool) Api

AttachDataToQuery sets data in the query if the method is GET

func (Api) AutoRefresh

func (b Api) AutoRefresh(value bool) Api

AutoRefresh enables or disables auto-refresh

func (Api) Cache

func (b Api) Cache(value string) Api

Cache sets the cache duration in milliseconds

func (Api) ConcatDataFields

func (b Api) ConcatDataFields(value string) Api

ConcatDataFields merges data fields from multiple responses

func (Api) ConvertKeyToPath

func (b Api) ConvertKeyToPath(value bool) Api

ConvertKeyToPath converts keys with dots or braces to objects

func (Api) Data

func (b Api) Data(value any) Api

Data sets the data to be sent

func (Api) DataType

func (b Api) DataType(value string) Api

DataType sets the format of the request body

func (Api) ForceAppendDataToQuery

func (b Api) ForceAppendDataToQuery(value bool) Api

ForceAppendDataToQuery forces data to be appended to the query

func (Api) Headers

func (b Api) Headers(value any) Api

Headers sets the request headers

func (Api) Messages

func (b Api) Messages(value any) Api

Messages sets the message to be displayed

func (Api) Method

func (b Api) Method(value string) Api

Method sets the HTTP method

func (Api) QsOptions

func (b Api) QsOptions(value ...any) Api

QsOptions sets the query string options

func (Api) ReplaceData

func (b Api) ReplaceData(value bool) Api

ReplaceData replaces the existing data

func (Api) RequestAdaptor

func (b Api) RequestAdaptor(value string) Api

RequestAdaptor customizes the request before sending

func (Api) ResponseData

func (b Api) ResponseData(value any) Api

ResponseData maps the response data

func (Api) ResponseType

func (b Api) ResponseType(value string) Api

ResponseType sets the response type, e.g., for file downloads

func (Api) SendOn

func (b Api) SendOn(value string) Api

SendOn sets the condition for sending the request

func (Api) Silent

func (b Api) Silent(value bool) Api

Silent enables or disables silent mode for auto-fill errors

func (Api) TrackExpression

func (b Api) TrackExpression(value string) Api

TrackExpression sets the expression to track for auto-refresh

func (Api) Url

func (b Api) Url(value string) Api

Url sets the target URL for the API request

type AutoFillHeight

type AutoFillHeight Schema

AutoFillHeight represents a renderer for automatically filling height

func NewAutoFillHeight

func NewAutoFillHeight() AutoFillHeight

func (AutoFillHeight) Height

func (a AutoFillHeight) Height(value string) AutoFillHeight

Height sets the component's height

func (AutoFillHeight) MaxHeight

func (a AutoFillHeight) MaxHeight(value string) AutoFillHeight

MaxHeight sets the maximum height for the component

type AutoGenerateFilter

type AutoGenerateFilter Schema

AutoGenerateFilter represents a renderer for automatically generating filter conditions

func NewAutoGenerateFilter

func NewAutoGenerateFilter() AutoGenerateFilter

func (AutoGenerateFilter) ColumnsNum

func (a AutoGenerateFilter) ColumnsNum(value string) AutoGenerateFilter

ColumnsNum sets the number of columns per row in filter conditions

func (AutoGenerateFilter) DefaultCollapsed

func (a AutoGenerateFilter) DefaultCollapsed(value bool) AutoGenerateFilter

DefaultCollapsed determines whether the filter is collapsed by default

func (AutoGenerateFilter) ShowBtnToolbar

func (a AutoGenerateFilter) ShowBtnToolbar(value bool) AutoGenerateFilter

ShowBtnToolbar controls the visibility of query field configuration buttons

type Badge

type Badge Schema

Badge represents a Badge renderer

func NewBadge

func NewBadge() Badge

func (Badge) Animation

func (b Badge) Animation(value bool) Badge

Animation enables or disables badge animation

func (Badge) ClassName

func (b Badge) ClassName(value string) Badge

ClassName sets the CSS class name

func (Badge) Level

func (b Badge) Level(value string) Badge

Level sets the notification type

func (Badge) Mode

func (b Badge) Mode(value string) Badge

Mode sets the badge type

func (Badge) Offset

func (b Badge) Offset(value string) Badge

Offset adjusts the badge position relative to its default position

func (Badge) OverflowCount

func (b Badge) OverflowCount(value string) Badge

OverflowCount sets the maximum number before truncation

func (Badge) Position

func (b Badge) Position(value string) Badge

Position sets the badge position

func (Badge) Size

func (b Badge) Size(value string) Badge

Size sets the badge size

func (Badge) Style

func (b Badge) Style(value any) Badge

Style sets custom inline styles for the badge

func (Badge) Text

func (b Badge) Text(value string) Badge

Text sets the text content

func (Badge) VisibleOn

func (b Badge) VisibleOn(value string) Badge

VisibleOn sets a conditional expression for badge visibility

type BreadcrumbItem Schema

func NewBreadcrumbItem

func NewBreadcrumbItem() BreadcrumbItem
func (bi BreadcrumbItem) Dropdown(value ...BreadcrumbItem) BreadcrumbItem
func (bi BreadcrumbItem) Href(value string) BreadcrumbItem
func (bi BreadcrumbItem) Icon(value string) BreadcrumbItem
func (bi BreadcrumbItem) Label(value string) BreadcrumbItem

type ChartAxis

type ChartAxis Schema

func NewChartAxis

func NewChartAxis() ChartAxis

func (ChartAxis) Data

func (c ChartAxis) Data(value any) ChartAxis

func (ChartAxis) Max

func (c ChartAxis) Max(value any) ChartAxis

Max number | string

func (ChartAxis) Min

func (c ChartAxis) Min(value any) ChartAxis

Min number | string

func (ChartAxis) Set

func (c ChartAxis) Set(key string, value any) ChartAxis

func (ChartAxis) StartAngle

func (c ChartAxis) StartAngle(value float64) ChartAxis

func (ChartAxis) Type

func (c ChartAxis) Type(value string) ChartAxis

type ChartCfg

type ChartCfg Schema

func NewChartConfig

func NewChartConfig() ChartCfg

func (ChartCfg) AngleAxis

func (c ChartCfg) AngleAxis(value ChartAxis) ChartCfg

func (ChartCfg) AnimationDuration

func (c ChartCfg) AnimationDuration(value int) ChartCfg

func (ChartCfg) Json

func (c ChartCfg) Json() []byte

func (ChartCfg) JsonStr

func (c ChartCfg) JsonStr() string

func (ChartCfg) Legend

func (c ChartCfg) Legend(value any) ChartCfg

func (ChartCfg) Polar

func (c ChartCfg) Polar(value any) ChartCfg

func (ChartCfg) Radar

func (c ChartCfg) Radar(value any) ChartCfg

func (ChartCfg) RadiusAxis

func (c ChartCfg) RadiusAxis(value ChartAxis) ChartCfg

func (ChartCfg) Series

func (c ChartCfg) Series(value ...ChartSeri) ChartCfg

func (ChartCfg) Set

func (c ChartCfg) Set(key string, value any) ChartCfg

func (ChartCfg) Title

func (c ChartCfg) Title(value any) ChartCfg

func (ChartCfg) Tooltip

func (c ChartCfg) Tooltip(value any) ChartCfg

func (ChartCfg) XAxis

func (c ChartCfg) XAxis(value ChartAxis) ChartCfg

func (ChartCfg) YAxis

func (c ChartCfg) YAxis(value ChartAxis) ChartCfg

type ChartSeri

type ChartSeri Schema

func NewChartSeries

func NewChartSeries() ChartSeri

func (ChartSeri) AreaStyle

func (c ChartSeri) AreaStyle(value Schema) ChartSeri

func (ChartSeri) CoordinateSystem

func (c ChartSeri) CoordinateSystem(value string) ChartSeri

func (ChartSeri) Data

func (c ChartSeri) Data(value any) ChartSeri

func (ChartSeri) ItemStyle

func (c ChartSeri) ItemStyle(value any) ChartSeri

func (ChartSeri) Label

func (c ChartSeri) Label(value any) ChartSeri

func (ChartSeri) LineStyle

func (c ChartSeri) LineStyle(value Schema) ChartSeri

func (ChartSeri) Name

func (c ChartSeri) Name(value string) ChartSeri

func (ChartSeri) Radius

func (c ChartSeri) Radius(value string) ChartSeri

func (ChartSeri) Set

func (c ChartSeri) Set(key string, value any) ChartSeri

func (ChartSeri) ShowSymbol

func (c ChartSeri) ShowSymbol(value bool) ChartSeri

func (ChartSeri) Smooth

func (c ChartSeri) Smooth(value bool) ChartSeri

func (ChartSeri) Type

func (c ChartSeri) Type(value string) ChartSeri

Type line | bar | pie | scatter | radar ...

type Column

type Column Schema

func NewColumn

func NewColumn() Column

func (Column) Align

func (c Column) Align(value string) Column

Align sets the alignment

func (Column) Body

func (c Column) Body(value ...any) Column

Body sets the body content

func (Column) Buttons

func (c Column) Buttons(value ...any) Column

Buttons sets the buttons

func (Column) CanAccessSuperData

func (c Column) CanAccessSuperData(value bool) Column

CanAccessSuperData sets whether the cell can access parent data

func (Column) Children

func (c Column) Children(value string) Column

Children sets the header group

func (Column) ClassName

func (c Column) ClassName(value string) Column

ClassName sets the column class name

func (Column) ClassNameExpr

func (c Column) ClassNameExpr(value string) Column

ClassNameExpr sets the cell class name expression

func (Column) ColSpanExpr

func (c Column) ColSpanExpr(value string) Column

ColSpanExpr sets the column span expression

func (Column) ColumnClassName

func (c Column) ColumnClassName(value string) Column

ColumnClassName sets the column class name

func (Column) Copyable

func (c Column) Copyable(value bool) Column

Copyable sets whether the column is copyable

func (Column) Filterable

func (c Column) Filterable(value bool) Column

Filterable sets whether the column is filterable

func (Column) Fixed

func (c Column) Fixed(value string) Column

Fixed sets whether the column is fixed

func (Column) Label

func (c Column) Label(value string) Column

Label sets the column label

func (Column) Lg

func (c Column) Lg(value any) Column

Lg sets the width ratio for large screens

func (Column) Md

func (c Column) Md(value any) Column

Md sets the width ratio for medium screens

func (Column) Name

func (c Column) Name(value string) Column

Name sets the column unique identifier

func (Column) QuickEdit

func (c Column) QuickEdit(value string) Column

QuickEdit sets the quick edit configuration

func (Column) Remark

func (c Column) Remark(value string) Column

Remark sets the header remark

func (Column) RowSpanExpr

func (c Column) RowSpanExpr(value string) Column

RowSpanExpr sets the row span expression

func (Column) Searchable

func (c Column) Searchable(value any) Column

Searchable sets whether the column is searchable

func (Column) Set

func (c Column) Set(key string, value any) Column

Set sets a key-value pair

func (Column) Sm

func (c Column) Sm(value any) Column

Sm sets the width ratio for small screens

func (Column) Sortable

func (c Column) Sortable(value bool) Column

Sortable sets whether the column is sortable

func (Column) Sorter

func (c Column) Sorter(value bool) Column

Sorter sets the sorter

func (Column) Title

func (c Column) Title(value any) Column

Title sets the column title

func (Column) TitleClassName

func (c Column) TitleClassName(value string) Column

TitleClassName sets the header cell class name

func (Column) Togged

func (c Column) Togged(value bool) Column

Togged sets whether the column is toggled

func (Column) Type

func (c Column) Type(value string) Column

Type sets the column type

func (Column) Valign

func (c Column) Valign(value string) Column

Valign sets the vertical alignment

func (Column) Width

func (c Column) Width(value string) Column

Width sets the column width

func (Column) Xs

func (c Column) Xs(value any) Column

Xs sets the width ratio for extra small screens

type ComboCondition

type ComboCondition Schema

ComboCondition represents a composite condition rendering component

func NewComboCondition

func NewComboCondition() ComboCondition

func (ComboCondition) Items

func (cc ComboCondition) Items(value ...any) ComboCondition

Items sets the collection of condition items

func (ComboCondition) Label

func (cc ComboCondition) Label(value string) ComboCondition

Label sets the text label for the condition component

func (ComboCondition) Mode

func (cc ComboCondition) Mode(value string) ComboCondition

Mode sets the operational mode for the condition component

func (ComboCondition) Scaffold

func (cc ComboCondition) Scaffold(value string) ComboCondition

Scaffold sets the structural template or framework for the condition

func (ComboCondition) Test

func (cc ComboCondition) Test(value string) ComboCondition

Test sets the condition test expression or value

type Component

type Component Schema

Component represents a flexible Component with configurable attributes

func NewComponent

func NewComponent() Component

func (Component) Set

func (c Component) Set(key string, value any) Component

Set allows setting additional properties for the component

type Event

type Event Schema

func NewEvent

func NewEvent() Event

func (Event) Cancel

func (e Event) Cancel(value any) Event

func (Event) Change

func (e Event) Change(value any) Event

func (Event) Click

func (e Event) Click(value any) Event

func (Event) Confirm

func (e Event) Confirm(value any) Event

func (Event) MouseEnter

func (e Event) MouseEnter(value any) Event

func (Event) MouseLeave

func (e Event) MouseLeave(value any) Event

func (Event) RowClick

func (e Event) RowClick(value any) Event

func (Event) Set

func (e Event) Set(key string, value any) Event

func (Event) SubmitSucc

func (e Event) SubmitSucc(value any) Event

type EventAction

type EventAction Schema

func NewEventAction

func NewEventAction() EventAction

func NewEventActionDialog

func NewEventActionDialog(dialog ...any) EventAction

func NewEventActionDrawer

func NewEventActionDrawer(drawer ...any) EventAction

func NewEventActionToast

func NewEventActionToast() EventAction

func (EventAction) ActionType

func (la EventAction) ActionType(value string) EventAction

ActionType sets the action type Possible values: toast | ajax | dialog | closeDialog | drawer | closeDrawer | confirmDialog | alert url | link | goBack | refresh | copy | print | email | setEventData | wait setValue | reload | show | hidden | enabled | disabled | static | nonstatic broadcast | loop | break | continue | switch | parallel | validate | custom

func (EventAction) Api

func (ea EventAction) Api(value any) EventAction

Api sets the api when actionType is ajax

func (EventAction) Args

func (la EventAction) Args(value any) EventAction

Args sets the arguments

func (EventAction) Children

func (ea EventAction) Children(value ...EventAction) EventAction

func (EventAction) ComponentID

func (la EventAction) ComponentID(value string) EventAction

ComponentID sets the component ID

func (EventAction) ComponentName

func (la EventAction) ComponentName(value string) EventAction

ComponentName sets the component name

func (EventAction) ConfirmTitle

func (la EventAction) ConfirmTitle(value any) EventAction

ConfirmTitle sets the confirm dialog title

func (EventAction) Data

func (la EventAction) Data(value any) EventAction

Data sets the data

func (EventAction) DataMergeMode

func (la EventAction) DataMergeMode(value string) EventAction

DataMergeMode sets the data merge mode Possible values: merge | override

func (EventAction) Description

func (la EventAction) Description(value string) EventAction

Description sets the description

func (EventAction) Dialog

func (ea EventAction) Dialog(value any) EventAction

Dialog defines the dialog when the actionType is dialog

func (EventAction) Drawer

func (ea EventAction) Drawer(value any) EventAction

Drawer defines the drawer when the actionType is drawer

func (EventAction) ExecOn

func (la EventAction) ExecOn(value string) EventAction

ExecOn sets the execution condition

func (EventAction) Expression

func (la EventAction) Expression(value any) EventAction

Expression sets the execution condition as a boolean, expression, or ConditionBuilder

func (EventAction) IgnoreError

func (la EventAction) IgnoreError(value bool) EventAction

IgnoreError sets whether to ignore errors

func (EventAction) OutputVar

func (la EventAction) OutputVar(value string) EventAction

OutputVar sets the output variable

func (EventAction) PreventDefault

func (la EventAction) PreventDefault(value any) EventAction

PreventDefault sets whether to prevent the default behavior as a boolean, expression, or ConditionBuilder

func (EventAction) Script

func (ea EventAction) Script(value string) EventAction

Script sets a custom script when actionType is custom

func (EventAction) StopPropagation

func (la EventAction) StopPropagation(value any) EventAction

StopPropagation sets whether to stop event propagation as a boolean, expression, or ConditionBuilder

func (EventAction) Value

func (ea EventAction) Value(value string) EventAction

Value sets the value

func (EventAction) WaitForAction

func (ea EventAction) WaitForAction(value bool) EventAction

WaitForAction sets if wait the dialog/drawer action

type EventActionArgs

type EventActionArgs Schema

func NewEventActionArgs

func NewEventActionArgs() EventActionArgs

func (EventActionArgs) Blank

func (a EventActionArgs) Blank(value bool) EventActionArgs

func (EventActionArgs) CloseButton

func (a EventActionArgs) CloseButton(value bool) EventActionArgs

func (EventActionArgs) Content

func (a EventActionArgs) Content(value string) EventActionArgs

func (EventActionArgs) Delta

func (a EventActionArgs) Delta(value int) EventActionArgs

func (EventActionArgs) EventName

func (a EventActionArgs) EventName(value string) EventActionArgs

func (EventActionArgs) ID

func (EventActionArgs) Key

func (a EventActionArgs) Key(value string) EventActionArgs
func (a EventActionArgs) Link(value string) EventActionArgs

func (EventActionArgs) LoopName

func (a EventActionArgs) LoopName(value string) EventActionArgs

func (EventActionArgs) Msg

func (a EventActionArgs) Msg(value string) EventActionArgs

func (EventActionArgs) MsgType

func (a EventActionArgs) MsgType(value string) EventActionArgs

func (EventActionArgs) Params

func (a EventActionArgs) Params(value any) EventActionArgs

func (EventActionArgs) Position

func (a EventActionArgs) Position(value string) EventActionArgs

func (EventActionArgs) Set

func (a EventActionArgs) Set(key string, value any) EventActionArgs

func (EventActionArgs) ShowIcon

func (a EventActionArgs) ShowIcon(value bool) EventActionArgs

func (EventActionArgs) TargetType

func (a EventActionArgs) TargetType(value string) EventActionArgs

func (EventActionArgs) Time

func (a EventActionArgs) Time(value int) EventActionArgs

func (EventActionArgs) Timeout

func (a EventActionArgs) Timeout(value float64) EventActionArgs

func (EventActionArgs) Url

func (a EventActionArgs) Url(value string) EventActionArgs

func (EventActionArgs) Value

func (a EventActionArgs) Value(value any) EventActionArgs

type EventActions

type EventActions Schema

func NewEventActions

func NewEventActions(value ...any) EventActions

func (EventActions) Actions

func (e EventActions) Actions(value ...any) EventActions

type Expandable

type Expandable Schema

Expandable represents an Expandable renderer

func NewExpandable

func NewExpandable() Expandable

func (Expandable) ExpandableOn

func (e Expandable) ExpandableOn(value string) Expandable

ExpandableOn sets the expression for whether a row is expandable

func (Expandable) ExpandedRowClassNameExpr

func (e Expandable) ExpandedRowClassNameExpr(value string) Expandable

ExpandedRowClassNameExpr sets the expression for the expanded row class name

func (Expandable) ExpandedRowKeys

func (e Expandable) ExpandedRowKeys(value string) Expandable

ExpandedRowKeys sets the keys of the expanded rows

func (Expandable) ExpandedRowKeysExpr

func (e Expandable) ExpandedRowKeysExpr(value string) Expandable

ExpandedRowKeysExpr sets the expression for the keys of the expanded rows

func (Expandable) KeyField

func (e Expandable) KeyField(value string) Expandable

KeyField sets the key field corresponding to the data source

type FeedbackDialog

type FeedbackDialog Schema

FeedbackDialog represents a feedback dialog

func NewFeedbackDialog

func NewFeedbackDialog() FeedbackDialog

func (FeedbackDialog) Actions

func (f FeedbackDialog) Actions(value string) FeedbackDialog

Actions sets the actions, default buttons are confirm and cancel

func (FeedbackDialog) Body

func (f FeedbackDialog) Body(value ...any) FeedbackDialog

Body sets the content area

func (FeedbackDialog) BodyClassName

func (f FeedbackDialog) BodyClassName(value string) FeedbackDialog

BodyClassName sets the class name for the body container

func (FeedbackDialog) ClassName

func (f FeedbackDialog) ClassName(value string) FeedbackDialog

ClassName sets the CSS class name for the container

func (FeedbackDialog) CloseOnEsc

func (f FeedbackDialog) CloseOnEsc(value bool) FeedbackDialog

CloseOnEsc sets whether the dialog can be closed with the ESC key

func (FeedbackDialog) CloseOnOutside

func (f FeedbackDialog) CloseOnOutside(value bool) FeedbackDialog

CloseOnOutside sets whether the dialog can be closed by clicking outside

func (FeedbackDialog) Confirm

func (f FeedbackDialog) Confirm(value bool) FeedbackDialog

Confirm sets whether the confirm button is enabled

func (FeedbackDialog) Data

func (f FeedbackDialog) Data(value any) FeedbackDialog

Data sets the data mapping

func (FeedbackDialog) DialogType

func (f FeedbackDialog) DialogType(value string) FeedbackDialog

DialogType sets the dialog type, e.g., confirm

func (FeedbackDialog) Disabled

func (f FeedbackDialog) Disabled(value bool) FeedbackDialog

Disabled sets whether the dialog is disabled

func (FeedbackDialog) DisabledOn

func (f FeedbackDialog) DisabledOn(value string) FeedbackDialog

DisabledOn sets the expression to disable the dialog

func (FeedbackDialog) Draggable

func (f FeedbackDialog) Draggable(value bool) FeedbackDialog

Draggable sets whether the dialog is draggable

func (FeedbackDialog) EditorSetting

func (f FeedbackDialog) EditorSetting(value string) FeedbackDialog

EditorSetting sets the editor configuration, ignored at runtime

func (FeedbackDialog) Footer

func (f FeedbackDialog) Footer(value string) FeedbackDialog

Footer sets the footer content

func (FeedbackDialog) Header

func (f FeedbackDialog) Header(value string) FeedbackDialog

Header sets the header content

func (FeedbackDialog) HeaderClassName

func (f FeedbackDialog) HeaderClassName(value string) FeedbackDialog

HeaderClassName sets the class name for the header

func (FeedbackDialog) Height

func (f FeedbackDialog) Height(value string) FeedbackDialog

Height sets the dialog height

func (FeedbackDialog) Hidden

func (f FeedbackDialog) Hidden(value bool) FeedbackDialog

Hidden sets whether the dialog is hidden

func (FeedbackDialog) HiddenOn

func (f FeedbackDialog) HiddenOn(value string) FeedbackDialog

HiddenOn sets the expression to hide the dialog

func (FeedbackDialog) ID

func (f FeedbackDialog) ID(value string) FeedbackDialog

ID sets the unique ID for the component, mainly for logging

func (FeedbackDialog) InputParams

func (f FeedbackDialog) InputParams(value string) FeedbackDialog

InputParams sets the dialog parameters, formatted as JSONSchema

func (FeedbackDialog) Name

func (f FeedbackDialog) Name(value string) FeedbackDialog

Name sets the component name, used for locating and communication

func (FeedbackDialog) OnEvent

func (f FeedbackDialog) OnEvent(value any) FeedbackDialog

OnEvent sets the event action configuration

func (FeedbackDialog) Overlay

func (f FeedbackDialog) Overlay(value bool) FeedbackDialog

Overlay sets whether to show the overlay

func (FeedbackDialog) ShowCloseButton

func (f FeedbackDialog) ShowCloseButton(value bool) FeedbackDialog

ShowCloseButton sets whether to show the close button

func (FeedbackDialog) ShowErrorMsg

func (f FeedbackDialog) ShowErrorMsg(value bool) FeedbackDialog

ShowErrorMsg sets whether to show error messages

func (FeedbackDialog) ShowLoading

func (f FeedbackDialog) ShowLoading(value bool) FeedbackDialog

ShowLoading sets whether to show the loading spinner

func (FeedbackDialog) Size

func (f FeedbackDialog) Size(value string) FeedbackDialog

Size sets the dialog size

func (FeedbackDialog) SkipRestOnCancel

func (f FeedbackDialog) SkipRestOnCancel(value bool) FeedbackDialog

SkipRestOnCancel sets whether to interrupt subsequent operations on cancel

func (FeedbackDialog) SkipRestOnConfirm

func (f FeedbackDialog) SkipRestOnConfirm(value bool) FeedbackDialog

SkipRestOnConfirm sets whether to interrupt subsequent operations on confirm

func (FeedbackDialog) Static

func (f FeedbackDialog) Static(value bool) FeedbackDialog

Static sets whether the dialog is displayed statically

func (FeedbackDialog) StaticClassName

func (f FeedbackDialog) StaticClassName(value string) FeedbackDialog

StaticClassName sets the class name for static display form items

func (FeedbackDialog) StaticInputClassName

func (f FeedbackDialog) StaticInputClassName(value string) FeedbackDialog

StaticInputClassName sets the class name for static display form item values

func (FeedbackDialog) StaticLabelClassName

func (f FeedbackDialog) StaticLabelClassName(value string) FeedbackDialog

StaticLabelClassName sets the class name for static display form item labels

func (FeedbackDialog) StaticOn

func (f FeedbackDialog) StaticOn(value string) FeedbackDialog

StaticOn sets the expression for static display

func (FeedbackDialog) StaticPlaceholder

func (f FeedbackDialog) StaticPlaceholder(value string) FeedbackDialog

StaticPlaceholder sets the placeholder for static display empty values

func (FeedbackDialog) StaticSchema

func (f FeedbackDialog) StaticSchema(value string) FeedbackDialog

StaticSchema sets the static schema

func (FeedbackDialog) Style

func (f FeedbackDialog) Style(value any) FeedbackDialog

Style sets the component style

func (FeedbackDialog) TestIdBuilder

func (f FeedbackDialog) TestIdBuilder(value string) FeedbackDialog

TestIdBuilder sets the test ID builder

func (FeedbackDialog) Testid

func (f FeedbackDialog) Testid(value string) FeedbackDialog

Testid sets the test ID

func (FeedbackDialog) Title

func (f FeedbackDialog) Title(value any) FeedbackDialog

Title sets the dialog title

func (FeedbackDialog) UseMobileUI

func (f FeedbackDialog) UseMobileUI(value bool) FeedbackDialog

UseMobileUI sets whether to disable mobile UI styles at the component level

func (FeedbackDialog) Visible

func (f FeedbackDialog) Visible(value bool) FeedbackDialog

Visible sets whether the dialog is visible

func (FeedbackDialog) VisibleOn

func (f FeedbackDialog) VisibleOn(value string) FeedbackDialog

VisibleOn sets the condition for the dialog to appear

func (FeedbackDialog) Width

func (f FeedbackDialog) Width(value string) FeedbackDialog

Width sets the dialog width

type GridColumn

type GridColumn Schema

GridColumn represents a grid column

func NewGridColumn

func NewGridColumn() GridColumn

func (GridColumn) Body

func (c GridColumn) Body(value ...any) GridColumn

Body sets the content of the column

func (GridColumn) ColumnClassName

func (c GridColumn) ColumnClassName(value string) GridColumn

ColumnClassName sets the CSS class name of the column

func (GridColumn) Horizontal

func (c GridColumn) Horizontal(value string) GridColumn

Horizontal sets the horizontal width ratio for horizontal layout

func (GridColumn) ID

func (c GridColumn) ID(value string) GridColumn

ID sets the unique ID of the component

func (GridColumn) Lg

func (c GridColumn) Lg(value string) GridColumn

Lg sets the width ratio for large screens (>=1200px)

func (GridColumn) Md

func (c GridColumn) Md(value string) GridColumn

Md sets the width ratio for medium screens (>=992px)

func (GridColumn) Mode

func (c GridColumn) Mode(value string) GridColumn

Mode sets the default display mode of sub-form items

func (GridColumn) Sm

func (c GridColumn) Sm(value string) GridColumn

Sm sets the width ratio for small screens (>=768px)

func (GridColumn) Style

func (c GridColumn) Style(value any) GridColumn

Style sets the style of the column

func (GridColumn) ThemeCSS

func (c GridColumn) ThemeCSS(value any) GridColumn

ThemeCSS sets the theme CSS of the column

func (GridColumn) Valign

func (c GridColumn) Valign(value string) GridColumn

Valign sets the vertical alignment of the column

func (GridColumn) WrapperCustomStyle

func (c GridColumn) WrapperCustomStyle(value any) GridColumn

WrapperCustomStyle sets the custom wrapper style of the column

func (GridColumn) Xs

func (c GridColumn) Xs(value string) GridColumn

Xs sets the width ratio for extra small screens (<768px)

type GridItem

type GridItem Schema

func NewGridItem

func NewGridItem() GridItem

func (GridItem) Align

func (g GridItem) Align(value string) GridItem

Align sets the horizontal alignment (left/center/right/auto)

func (GridItem) H

func (g GridItem) H(value int) GridItem

H sets the height span

func (GridItem) Height

func (g GridItem) Height(value any) GridItem

Height sets the row height (int/string/"auto")

func (GridItem) Valign

func (g GridItem) Valign(value string) GridItem

Valign sets the vertical alignment (top/bottom/middle/auto)

func (GridItem) W

func (g GridItem) W(value int) GridItem

W sets the width span

func (GridItem) Width

func (g GridItem) Width(value any) GridItem

Width sets the column width (int/string/"auto")

func (GridItem) X

func (g GridItem) X(value int) GridItem

X sets the starting X coordinate

func (GridItem) Y

func (g GridItem) Y(value int) GridItem

Y sets the starting Y coordinate

type HBoxColumn

type HBoxColumn Schema

HBoxColumn represents a column renderer

func NewHBoxColumn

func NewHBoxColumn() HBoxColumn

func (HBoxColumn) Body

func (h HBoxColumn) Body(value ...any) HBoxColumn

Body sets the content area

func (HBoxColumn) ColumnClassName

func (h HBoxColumn) ColumnClassName(value string) HBoxColumn

ColumnClassName sets the CSS class name for the column

func (HBoxColumn) Height

func (h HBoxColumn) Height(value string) HBoxColumn

Height sets the height

func (HBoxColumn) Horizontal

func (h HBoxColumn) Horizontal(value string) HBoxColumn

Horizontal sets the horizontal layout ratio

func (HBoxColumn) Mode

func (h HBoxColumn) Mode(value string) HBoxColumn

Mode sets the display mode for sub-form items

func (HBoxColumn) Style

func (h HBoxColumn) Style(value any) HBoxColumn

Style sets additional styles

func (HBoxColumn) Valign

func (h HBoxColumn) Valign(value string) HBoxColumn

Valign sets the vertical alignment

func (HBoxColumn) Visible

func (h HBoxColumn) Visible(value bool) HBoxColumn

Visible sets the visibility

func (HBoxColumn) VisibleOn

func (h HBoxColumn) VisibleOn(value string) HBoxColumn

VisibleOn sets the visibility expression

func (HBoxColumn) Width

func (h HBoxColumn) Width(value string) HBoxColumn

Width sets the width

type Horizontal

type Horizontal Schema

func NewHorizontal

func NewHorizontal() Horizontal

func (Horizontal) Justify

func (h Horizontal) Justify(value bool) Horizontal

Justify aligns form content to both ends. Only effective for inline controls.

func (Horizontal) Left

func (h Horizontal) Left(value string) Horizontal

func (Horizontal) Offset

func (h Horizontal) Offset(value string) Horizontal

func (Horizontal) Right

func (h Horizontal) Right(value string) Horizontal

type IconChecked

type IconChecked Schema

IconChecked represents an icon checked renderer

func NewIconChecked

func NewIconChecked() IconChecked

func (IconChecked) ID

func (i IconChecked) ID(value string) IconChecked

ID sets the unique id of the component

func (IconChecked) Name

func (i IconChecked) Name(value string) IconChecked

Name sets the name of the component

func (IconChecked) SVG

func (i IconChecked) SVG(value string) IconChecked

SVG sets the SVG icon

type IconItem

type IconItem Schema

IconItem represents an icon item renderer

func NewIconItem

func NewIconItem() IconItem

func (IconItem) Icon

func (i IconItem) Icon(value string) IconItem

Icon sets the iconfont class name

func (IconItem) Position

func (i IconItem) Position(value string) IconItem

Position sets the position

type ImageToolbarAction

type ImageToolbarAction Schema

ImageToolbarAction represents an image toolbar action

func NewImageToolbarAction

func NewImageToolbarAction() ImageToolbarAction

func (ImageToolbarAction) ConfirmTitle

func (a ImageToolbarAction) ConfirmTitle(value any) ImageToolbarAction

ConfirmTitle sets the confirm dialog title

func (ImageToolbarAction) Disabled

func (a ImageToolbarAction) Disabled(value bool) ImageToolbarAction

Disabled sets the disabled state

func (ImageToolbarAction) Icon

Icon sets the icon

func (ImageToolbarAction) IconClassName

func (a ImageToolbarAction) IconClassName(value string) ImageToolbarAction

IconClassName sets the icon class name

func (ImageToolbarAction) Key

Key sets the action key (ROTATE_RIGHT, ROTATE_LEFT, ZOOM_IN, ZOOM_OUT, SCALE_ORIGIN)

func (ImageToolbarAction) Label

Label sets the label

type ListBodyField

type ListBodyField Schema

ListBodyField represents a list body field control

func NewListBodyField

func NewListBodyField() ListBodyField

func (ListBodyField) Copyable

func (lb ListBodyField) Copyable(value bool) ListBodyField

Copyable enables the copy feature

func (ListBodyField) InnerClassName

func (lb ListBodyField) InnerClassName(value string) ListBodyField

InnerClassName sets the CSS class name for the inner component

func (ListBodyField) Label

func (lb ListBodyField) Label(value string) ListBodyField

Label sets the column header

func (ListBodyField) LabelClassName

func (lb ListBodyField) LabelClassName(value string) ListBodyField

LabelClassName sets the CSS class name for the label

func (ListBodyField) Name

func (lb ListBodyField) Name(value string) ListBodyField

Name sets the bound field name

func (ListBodyField) PopOver

func (lb ListBodyField) PopOver(value string) ListBodyField

PopOver sets the pop-over content

func (ListBodyField) QuickEdit

func (lb ListBodyField) QuickEdit(value string) ListBodyField

QuickEdit enables quick edit feature

type ListItem

type ListItem Schema

ListItem represents a list item.

func NewListItem

func NewListItem() ListItem

func (ListItem) Actions

func (li ListItem) Actions(value string) ListItem

Actions sets actions.

func (ListItem) ActionsPosition

func (li ListItem) ActionsPosition(value string) ListItem

ActionsPosition sets the position of actions (left or right).

func (ListItem) Avatar

func (li ListItem) Avatar(value string) ListItem

Avatar sets the image URL.

func (ListItem) Body

func (li ListItem) Body(value ...any) ListItem

Body sets the content area.

func (ListItem) ClassName

func (li ListItem) ClassName(value string) ListItem

ClassName sets the container CSS class name.

func (ListItem) Desc

func (li ListItem) Desc(value string) ListItem

Desc sets the description.

func (ListItem) Disabled

func (li ListItem) Disabled(value bool) ListItem

Disabled sets whether the item is disabled.

func (ListItem) DisabledOn

func (li ListItem) DisabledOn(value string) ListItem

DisabledOn sets the expression to determine if the item is disabled.

func (ListItem) EditorSetting

func (li ListItem) EditorSetting(value string) ListItem

EditorSetting sets the editor configuration.

func (ListItem) Hidden

func (li ListItem) Hidden(value bool) ListItem

Hidden sets whether the item is hidden.

func (ListItem) HiddenOn

func (li ListItem) HiddenOn(value string) ListItem

HiddenOn sets the expression to determine if the item is hidden.

func (ListItem) ID

func (li ListItem) ID(value string) ListItem

ID sets the unique component ID.

func (ListItem) OnEvent

func (li ListItem) OnEvent(value any) ListItem

OnEvent sets the event action configuration.

func (ListItem) Remark

func (li ListItem) Remark(value string) ListItem

Remark sets the tooltip description.

func (ListItem) Static

func (li ListItem) Static(value bool) ListItem

Static sets whether the item is displayed statically.

func (ListItem) StaticClassName

func (li ListItem) StaticClassName(value string) ListItem

StaticClassName sets the CSS class name for static display.

func (ListItem) StaticInputClassName

func (li ListItem) StaticInputClassName(value string) ListItem

StaticInputClassName sets the CSS class name for static input display.

func (ListItem) StaticLabelClassName

func (li ListItem) StaticLabelClassName(value string) ListItem

StaticLabelClassName sets the CSS class name for static label display.

func (ListItem) StaticOn

func (li ListItem) StaticOn(value string) ListItem

StaticOn sets the expression to determine if the item is displayed statically.

func (ListItem) StaticPlaceholder

func (li ListItem) StaticPlaceholder(value string) ListItem

StaticPlaceholder sets the placeholder for static display.

func (ListItem) StaticSchema

func (li ListItem) StaticSchema(value string) ListItem

StaticSchema sets the schema for static display mode.

func (ListItem) Style

func (li ListItem) Style(value any) ListItem

Style sets the component style.

func (ListItem) SubTitle

func (li ListItem) SubTitle(value any) ListItem

SubTitle sets the subtitle.

func (ListItem) TestIdBuilder

func (li ListItem) TestIdBuilder(value string) ListItem

TestIdBuilder sets the test ID builder.

func (ListItem) Testid

func (li ListItem) Testid(value string) ListItem

Testid sets the test ID.

func (ListItem) Title

func (li ListItem) Title(value any) ListItem

Title sets the title.

func (ListItem) UseMobileUI

func (li ListItem) UseMobileUI(value bool) ListItem

UseMobileUI sets whether to use mobile UI.

func (ListItem) Visible

func (li ListItem) Visible(value bool) ListItem

Visible sets whether the item is visible.

func (ListItem) VisibleOn

func (li ListItem) VisibleOn(value string) ListItem

VisibleOn sets the expression to determine if the item is visible.

type NavItem Schema

NavItem represents a navigation item

func NewNavItem

func NewNavItem() NavItem
func (n NavItem) Active(value bool) NavItem

Active sets the active state

func (n NavItem) Children(value string) NavItem

Children sets the children

func (n NavItem) ClassName(value string) NavItem

ClassName sets the CSS class name

func (n NavItem) Defer(value bool) NavItem

Defer sets the defer state

func (n NavItem) DeferApi(value string) NavItem

DeferApi sets the defer API

func (n NavItem) Disabled(value bool) NavItem

Disabled sets the disabled state

func (n NavItem) DisabledOn(value string) NavItem

DisabledOn sets the disabled expression

func (n NavItem) DisabledTip(value string) NavItem

DisabledTip sets the disabled tip

func (n NavItem) EditorSetting(value string) NavItem

EditorSetting sets the editor setting

func (n NavItem) Hidden(value bool) NavItem

Hidden sets the hidden state

func (n NavItem) HiddenOn(value string) NavItem

HiddenOn sets the hidden expression

func (n NavItem) ID(value string) NavItem

ID sets the unique ID

func (n NavItem) Icon(value string) NavItem

Icon sets the icon class name

func (n NavItem) Key(value string) NavItem

Key sets the unique key

func (n NavItem) Label(value string) NavItem

Label sets the label

func (n NavItem) Mode(value string) NavItem

Mode sets the mode

func (n NavItem) OnEvent(value any) NavItem

OnEvent sets the event configuration

func (n NavItem) Static(value bool) NavItem

Static sets the static display state

func (n NavItem) StaticClassName(value string) NavItem

StaticClassName sets the static display class name

func (n NavItem) StaticInputClassName(value string) NavItem

StaticInputClassName sets the static input class name

func (n NavItem) StaticLabelClassName(value string) NavItem

StaticLabelClassName sets the static label class name

func (n NavItem) StaticOn(value string) NavItem

StaticOn sets the static display expression

func (n NavItem) StaticPlaceholder(value string) NavItem

StaticPlaceholder sets the static placeholder

func (n NavItem) StaticSchema(value string) NavItem

StaticSchema sets the static schema

func (n NavItem) Style(value any) NavItem

Style sets the component style

func (n NavItem) Target(value string) NavItem

Target sets the target

func (n NavItem) TestIdBuilder(value string) NavItem

TestIdBuilder sets the test ID builder

func (n NavItem) Testid(value string) NavItem

Testid sets the test ID

func (n NavItem) To(value string) NavItem

To sets the navigation target

func (n NavItem) Unfolded(value bool) NavItem

Unfolded sets the unfolded state

func (n NavItem) UseMobileUI(value bool) NavItem

UseMobileUI sets the mobile UI state

func (n NavItem) Visible(value bool) NavItem

Visible sets the visibility

func (n NavItem) VisibleOn(value string) NavItem

VisibleOn sets the visibility expression

type NavLink Schema
func NewNavLink() NavLink
func (nl NavLink) Active(value bool) NavLink

Active sets whether the link is active.

func (nl NavLink) ActiveOn(value string) NavLink

ActiveOn sets the condition for the link to be active.

func (nl NavLink) Children(value ...NavLink) NavLink

Children sets the child links.

func (nl NavLink) ClassName(value string) NavLink

ClassName sets the custom CSS class.

func (nl NavLink) Defer(value bool) NavLink

Defer sets whether the link is lazy-loaded.

func (nl NavLink) DeferApi(value any) NavLink

DeferApi sets the API for lazy-loading.

func (nl NavLink) Disabled(value bool) NavLink

Disabled sets whether the link is disabled.

func (nl NavLink) DisabledTip(value string) NavLink

DisabledTip sets the tooltip text when the link is disabled.

func (nl NavLink) Icon(value string) NavLink

Icon sets the link icon.

func (nl NavLink) Label(value string) NavLink

Label sets the link label.

func (nl NavLink) Mode(value string) NavLink

Mode sets the menu item mode.

func (nl NavLink) Overflow(value any) NavLink

Overflow sets the overflow property.

func (nl NavLink) Target(value string) NavLink

Target sets the link target.

func (nl NavLink) To(value string) NavLink

To sets the link URL.

func (nl NavLink) Unfolded(value ...NavLink) NavLink

Unfolded sets whether the link is initially unfolded.

type NavOverflow Schema

NavOverflow represents the navigation overflow configuration.

func NewNavOverflow

func NewNavOverflow() NavOverflow
func (n NavOverflow) Enable(value bool) NavOverflow

Enable sets whether responsive overflow is enabled.

func (n NavOverflow) ItemWidth(value string) NavOverflow

ItemWidth sets the width of navigation items.

func (n NavOverflow) MaxVisibleCount(value string) NavOverflow

MaxVisibleCount sets the maximum number of visible items.

func (n NavOverflow) OverflowClassName(value string) NavOverflow

OverflowClassName sets the CSS class name for the overflow button.

func (n NavOverflow) OverflowIndicator(value string) NavOverflow

OverflowIndicator sets the icon for the overflow button.

func (n NavOverflow) OverflowLabel(value string) NavOverflow

OverflowLabel sets the text for the overflow button.

func (n NavOverflow) OverflowListClassName(value string) NavOverflow

OverflowListClassName sets the CSS class name for the overflow list.

func (n NavOverflow) OverflowPopoverClassName(value string) NavOverflow

OverflowPopoverClassName sets the CSS class name for the popover.

func (n NavOverflow) OverflowSuffix(value string) NavOverflow

OverflowSuffix sets the suffix node for the navigation list.

func (n NavOverflow) Style(value any) NavOverflow

Style sets custom styles.

func (n NavOverflow) WrapperComponent(value string) NavOverflow

WrapperComponent sets the outer tag name for wrapping navigation.

type Option

type Option Schema

Option represents an option schema

func NewOption

func NewOption() Option

func (Option) Body

func (o Option) Body(value any) Option

Body sets the body content

func (Option) Children

func (o Option) Children(value ...Option) Option

Children supports nested options

func (Option) Defer

func (o Option) Defer(value bool) Option

Defer marks data for deferred loading

func (Option) DeferApi

func (o Option) DeferApi(value string) Option

DeferApi sets a higher priority API for deferred loading

func (Option) Description

func (o Option) Description(value string) Option

Description sets a description

func (Option) Disabled

func (o Option) Disabled(value bool) Option

Disabled sets the disabled state

func (Option) Hidden

func (o Option) Hidden(value bool) Option

Hidden sets the hidden state (use visible instead)

func (Option) Image

func (o Option) Image(value string) Option

Image sets the image path

func (Option) Label

func (o Option) Label(value string) Option

Label sets the display text

func (Option) Loaded

func (o Option) Loaded(value bool) Option

Loaded indicates if deferred loading is complete (internal use only)

func (Option) Loading

func (o Option) Loading(value bool) Option

Loading marks as loading (internal use only)

func (Option) ScopeLabel

func (o Option) ScopeLabel(value string) Option

ScopeLabel sets a scope label for clearer data display

func (Option) Set

func (o Option) Set(key string, value any) Option

Set sets a field value

func (Option) Value

func (o Option) Value(value any) Option

Value sets a unique value for the option

func (Option) Visible

func (o Option) Visible(value bool) Option

Visible sets the visibility state

type Options

type Options Schema

func NewOptions

func NewOptions() Options

func (Options) AutoFill

func (o Options) AutoFill(value string) Options

AutoFill sets autoFill value

func (Options) ClassName

func (o Options) ClassName(value string) Options

ClassName sets the outer class name

func (Options) Description

func (o Options) Description(value string) Options

Description sets the description

func (Options) Disabled

func (o Options) Disabled(value bool) Options

Disabled sets the disabled state

func (Options) DisabledOn

func (o Options) DisabledOn(value string) Options

DisabledOn sets the condition for disabling

func (Options) ExtractValue

func (o Options) ExtractValue(value bool) Options

ExtractValue sets extractValue, effective when joinValues is true

func (Options) Inline

func (o Options) Inline(value bool) Options

Inline sets the inline state

func (Options) InputClassName

func (o Options) InputClassName(value string) Options

InputClassName sets the input class name

func (Options) ItemHeight

func (o Options) ItemHeight(value string) Options

ItemHeight sets the height of each item for virtual rendering

func (Options) JoinValues

func (o Options) JoinValues(value bool) Options

JoinValues sets joinValues, concatenates selected values with commas

func (Options) Label

func (o Options) Label(value string) Options

Label sets the label

func (Options) LabelAlign

func (o Options) LabelAlign(value string) Options

LabelAlign sets the label alignment, effective when mode is horizontal

func (Options) LabelClassName

func (o Options) LabelClassName(value string) Options

LabelClassName sets the label class name

func (Options) LabelField

func (o Options) LabelField(value string) Options

LabelField sets the field used as label

func (Options) LabelRemark

func (o Options) LabelRemark(value string) Options

LabelRemark sets the label remark

func (Options) Multiple

func (o Options) Multiple(value bool) Options

Multiple sets the multiple selection state

func (Options) Name

func (o Options) Name(value string) Options

Name sets the field name for submission

func (Options) Options

func (o Options) Options(value ...any) Options

Options sets the options group

func (Options) Required

func (o Options) Required(value bool) Options

Required sets the required state

func (Options) RequiredOn

func (o Options) RequiredOn(value string) Options

RequiredOn sets the condition for required state

func (Options) Source

func (o Options) Source(value string) Options

Source sets the source for options group

func (Options) SubmitOnChange

func (o Options) SubmitOnChange(value bool) Options

SubmitOnChange sets the submit on change state

func (Options) ValidateApi

func (o Options) ValidateApi(value string) Options

ValidateApi sets the validation API

func (Options) Validations

func (o Options) Validations(value string) Options

Validations sets the validation rules

func (Options) Value

func (o Options) Value(value string) Options

Value sets the default value

func (Options) ValueField

func (o Options) ValueField(value string) Options

ValueField sets the field used as value

func (Options) ValuesNoWrap

func (o Options) ValuesNoWrap(value bool) Options

ValuesNoWrap sets the no-wrap state for multiple values

func (Options) VirtualThreshold

func (o Options) VirtualThreshold(value string) Options

VirtualThreshold sets the threshold for virtual rendering

func (Options) Visible

func (o Options) Visible(value bool) Options

Visible sets the visibility state

func (Options) VisibleOn

func (o Options) VisibleOn(value string) Options

VisibleOn sets the condition for visibility

type PageItem

type PageItem Schema

func NewPageItem

func NewPageItem() PageItem

func (PageItem) Children

func (p PageItem) Children(value ...PageItem) PageItem

Children sets the subpages.

func (PageItem) ClassName

func (p PageItem) ClassName(value string) PageItem

ClassName sets the menu class name.

func (PageItem) Icon

func (p PageItem) Icon(value string) PageItem

Icon sets the menu icon, e.g., fa fa-file.

func (PageItem) IsDefaultPage

func (p PageItem) IsDefaultPage(value bool) PageItem

IsDefaultPage sets the page as the custom 404 page.

func (PageItem) Label

func (p PageItem) Label(value string) PageItem

Label sets the menu name.

func (p PageItem) Link(value string) PageItem

Link sets an external link for the menu.

func (PageItem) Redirect

func (p PageItem) Redirect(value string) PageItem

Redirect sets the redirect target when the current page is hit.

func (PageItem) Rewrite

func (p PageItem) Rewrite(value string) PageItem

Rewrite sets the path to render another page without changing the URL.

func (PageItem) Schema

func (p PageItem) Schema(value any) PageItem

Schema sets the page configuration.

func (PageItem) SchemaApi

func (p PageItem) SchemaApi(value string) PageItem

SchemaApi sets the API to fetch the schema.

func (PageItem) Url

func (p PageItem) Url(value string) PageItem

Url sets the page route path. When the route matches this path, the current page is activated. If the path does not start with /, it will be concatenated with the parent path. For example, if the parent path is folder and the current path is pageA, the page will be activated when the address is /folder/pageA. If the path starts with /, such as /crud/list, the parent path will not be concatenated. It also supports routes with parameters like /crud/view/:id, and the value can be accessed in the page using ${params.id}.

func (PageItem) Visible

func (p PageItem) Visible(value bool) PageItem

Visible sets the visibility of the page in the menu.

type PortletTab

type PortletTab Schema

func NewPortletTab

func NewPortletTab() PortletTab

func (PortletTab) Body

func (p PortletTab) Body(value ...any) PortletTab

Body sets the body content

func (PortletTab) ClassName

func (p PortletTab) ClassName(value string) PortletTab

ClassName sets the container CSS class name

func (PortletTab) Disabled

func (p PortletTab) Disabled(value bool) PortletTab

Disabled sets the disabled state

func (PortletTab) DisabledOn

func (p PortletTab) DisabledOn(value string) PortletTab

DisabledOn sets the disabled expression

func (PortletTab) EditorSetting

func (p PortletTab) EditorSetting(value string) PortletTab

EditorSetting sets the editor configuration

func (PortletTab) Hidden

func (p PortletTab) Hidden(value bool) PortletTab

Hidden sets the hidden state

func (PortletTab) HiddenOn

func (p PortletTab) HiddenOn(value string) PortletTab

HiddenOn sets the hidden expression

func (PortletTab) ID

func (p PortletTab) ID(value string) PortletTab

ID sets the unique component ID

func (PortletTab) Icon

func (p PortletTab) Icon(value string) PortletTab

Icon sets the button icon

func (PortletTab) IconPosition

func (p PortletTab) IconPosition(value string) PortletTab

IconPosition sets the icon position

func (PortletTab) MountOnEnter

func (p PortletTab) MountOnEnter(value bool) PortletTab

MountOnEnter sets whether to load content on tab click

func (PortletTab) OnEvent

func (p PortletTab) OnEvent(value any) PortletTab

OnEvent sets the event action configuration

func (PortletTab) Reload

func (p PortletTab) Reload(value bool) PortletTab

Reload sets whether to re-render content each time

func (PortletTab) Static

func (p PortletTab) Static(value bool) PortletTab

Static sets the static display state

func (PortletTab) StaticClassName

func (p PortletTab) StaticClassName(value string) PortletTab

StaticClassName sets the static display form item class name

func (PortletTab) StaticInputClassName

func (p PortletTab) StaticInputClassName(value string) PortletTab

StaticInputClassName sets the static display form item value class name

func (PortletTab) StaticLabelClassName

func (p PortletTab) StaticLabelClassName(value string) PortletTab

StaticLabelClassName sets the static display form item label class name

func (PortletTab) StaticOn

func (p PortletTab) StaticOn(value string) PortletTab

StaticOn sets the static display expression

func (PortletTab) StaticPlaceholder

func (p PortletTab) StaticPlaceholder(value string) PortletTab

StaticPlaceholder sets the static display placeholder

func (PortletTab) StaticSchema

func (p PortletTab) StaticSchema(value string) PortletTab

StaticSchema sets the static display schema

func (PortletTab) Style

func (p PortletTab) Style(value any) PortletTab

Style sets the component style

func (PortletTab) Tab

func (p PortletTab) Tab(value string) PortletTab

Tab sets the tab content

func (PortletTab) TestIdBuilder

func (p PortletTab) TestIdBuilder(value string) PortletTab

TestIdBuilder sets the test ID builder

func (PortletTab) Testid

func (p PortletTab) Testid(value string) PortletTab

Testid sets the test ID

func (PortletTab) Title

func (p PortletTab) Title(value any) PortletTab

Title sets the tab title

func (PortletTab) Toolbar

func (p PortletTab) Toolbar(value string) PortletTab

Toolbar sets the toolbar configuration

func (PortletTab) UnmountOnExit

func (p PortletTab) UnmountOnExit(value bool) PortletTab

UnmountOnExit sets whether to destroy the tab node on hide

func (PortletTab) UseMobileUI

func (p PortletTab) UseMobileUI(value bool) PortletTab

UseMobileUI sets whether to disable mobile styles

func (PortletTab) Visible

func (p PortletTab) Visible(value bool) PortletTab

Visible sets the visibility state

func (PortletTab) VisibleOn

func (p PortletTab) VisibleOn(value string) PortletTab

VisibleOn sets the visibility expression

type PropertyItem

type PropertyItem Schema

func NewPropertyItem

func NewPropertyItem() PropertyItem

func (PropertyItem) Content

func (i PropertyItem) Content(value any) PropertyItem

Content sets the content property

func (PropertyItem) HiddenOn

func (i PropertyItem) HiddenOn(value string) PropertyItem

HiddenOn sets the hiddenOn expression

func (PropertyItem) Label

func (i PropertyItem) Label(value string) PropertyItem

Label sets the label property

func (PropertyItem) Span

func (i PropertyItem) Span(value int) PropertyItem

Span sets the span property

func (PropertyItem) VisibleOn

func (i PropertyItem) VisibleOn(value string) PropertyItem

VisibleOn sets the visibleOn expression

type PullRefresh

type PullRefresh Schema

func NewPullRefresh

func NewPullRefresh() PullRefresh

func (PullRefresh) Disabled

func (p PullRefresh) Disabled(value bool) PullRefresh

func (PullRefresh) LoosingText

func (p PullRefresh) LoosingText(value string) PullRefresh

func (PullRefresh) PullingText

func (p PullRefresh) PullingText(value string) PullRefresh

type QRCodeImageSettings

type QRCodeImageSettings Schema

func NewQRCodeImageSettings

func NewQRCodeImageSettings() QRCodeImageSettings

func (QRCodeImageSettings) Excavate

func (q QRCodeImageSettings) Excavate(value bool) QRCodeImageSettings

Excavate sets the "excavate" property of qrCodeImageSettings and returns the updated settings.

func (QRCodeImageSettings) Height

Height

func (QRCodeImageSettings) Src

Src

func (QRCodeImageSettings) Width

Width

func (QRCodeImageSettings) X

X

func (QRCodeImageSettings) Y

Y

type Response

type Response struct {
	Status int    `json:"status"`
	Msg    string `json:"msg"`
	Data   Schema `json:"data"`
}

func ErrorResponse

func ErrorResponse(msg string) *Response

func SuccessResponse

func SuccessResponse(msg string, data Schema) *Response

func (*Response) Json

func (r *Response) Json() []byte

type RowSelection

type RowSelection Schema

RowSelection represents the configuration for row selection in a table.

func NewRowSelection

func NewRowSelection() RowSelection

func (RowSelection) ColumnWidth

func (r RowSelection) ColumnWidth(value string) RowSelection

ColumnWidth sets the column width for the row selection.

func (RowSelection) DisableOn

func (r RowSelection) DisableOn(value string) RowSelection

DisableOn sets the condition expression for disabling rows.

func (RowSelection) KeyField

func (r RowSelection) KeyField(value string) RowSelection

KeyField sets the key field that corresponds to the data source.

func (RowSelection) RowClick

func (r RowSelection) RowClick(value bool) RowSelection

RowClick sets whether to trigger selection or deselection when clicking on a row.

func (RowSelection) SelectedRowKeys

func (r RowSelection) SelectedRowKeys(value string) RowSelection

SelectedRowKeys sets the selected row keys.

func (RowSelection) SelectedRowKeysExpr

func (r RowSelection) SelectedRowKeysExpr(value string) RowSelection

SelectedRowKeysExpr sets the expression for selected row keys.

func (RowSelection) Selections

func (r RowSelection) Selections(value string) RowSelection

Selections sets the custom selection menu.

func (RowSelection) Type

func (r RowSelection) Type(value string) RowSelection

Type sets the selection type, either single or multiple.

type RowSelectionOptions

type RowSelectionOptions Schema

RowSelectionOptions

func NewRowSelectionOptions

func NewRowSelectionOptions() RowSelectionOptions

func (RowSelectionOptions) Key

Key sets the selection key

func (RowSelectionOptions) Text

Text sets the option display text

type Rule

type Rule Schema

func NewRule

func NewRule() Rule

func (Rule) Message

func (r Rule) Message(value string) Rule

Message sets the error message for validation failure.

func (Rule) Name

func (r Rule) Name(value any) Rule

Name sets the name of the rule.

func (Rule) Rule

func (r Rule) Rule(value string) Rule

Rule sets the validation rule, e.g., "data.user && data.email".

type Schema

type Schema map[string]any

func (Schema) Get

func (s Schema) Get(key string) any

func (Schema) Json

func (s Schema) Json() []byte

func (Schema) Set

func (s Schema) Set(key string, value any)

type SchemaApi

type SchemaApi Schema

SchemaApi represents a schema API configuration.

func NewSchemaApi

func NewSchemaApi() SchemaApi

func (SchemaApi) AttachDataToQuery

func (s SchemaApi) AttachDataToQuery(value bool) SchemaApi

AttachDataToQuery sets whether to attach data to the query.

func (SchemaApi) AutoRefresh

func (s SchemaApi) AutoRefresh(value bool) SchemaApi

AutoRefresh sets whether to auto refresh.

func (SchemaApi) Cache

func (s SchemaApi) Cache(value string) SchemaApi

Cache sets the cache duration.

func (SchemaApi) ConvertKeyToPath

func (s SchemaApi) ConvertKeyToPath(value bool) SchemaApi

ConvertKeyToPath sets whether to convert key to path.

func (SchemaApi) Data

func (s SchemaApi) Data(value any) SchemaApi

Data sets the data configuration.

func (SchemaApi) DataType

func (s SchemaApi) DataType(value string) SchemaApi

DataType sets the data type.

func (SchemaApi) DownloadFileName

func (s SchemaApi) DownloadFileName(value string) SchemaApi

DownloadFileName sets the download file name.

func (SchemaApi) ForceAppendDataToQuery

func (s SchemaApi) ForceAppendDataToQuery(value bool) SchemaApi

ForceAppendDataToQuery sets whether to force append data to query.

func (SchemaApi) Headers

func (s SchemaApi) Headers(value string) SchemaApi

Headers sets the headers configuration.

func (SchemaApi) Method

func (s SchemaApi) Method(value string) SchemaApi

Method sets the HTTP method.

func (SchemaApi) QsOptions

func (s SchemaApi) QsOptions(value ...any) SchemaApi

QsOptions sets the query string options.

func (SchemaApi) ReplaceData

func (s SchemaApi) ReplaceData(value bool) SchemaApi

ReplaceData sets whether to replace data.

func (SchemaApi) ResponseData

func (s SchemaApi) ResponseData(value string) SchemaApi

ResponseData sets the response data configuration.

func (SchemaApi) ResponseType

func (s SchemaApi) ResponseType(value string) SchemaApi

ResponseType sets the response type.

func (SchemaApi) SendOn

func (s SchemaApi) SendOn(value string) SchemaApi

SendOn sets the send condition.

func (SchemaApi) Silent

func (s SchemaApi) Silent(value bool) SchemaApi

Silent sets whether to silence errors.

func (SchemaApi) TrackExpression

func (s SchemaApi) TrackExpression(value string) SchemaApi

TrackExpression sets the track expression.

func (SchemaApi) Url

func (s SchemaApi) Url(value string) SchemaApi

Url sets the URL.

type SchemaCopyable

type SchemaCopyable Schema

SchemaCopyable

func NewSchemaCopyable

func NewSchemaCopyable() SchemaCopyable

func (SchemaCopyable) Content

func (s SchemaCopyable) Content(value string) SchemaCopyable

Content configures the content template when copying. (Supports two syntaxes, but cannot be mixed. They are: 1. `${xxx}` or `${xxx|upperCase}` 2. `<%= data.xxx %>`) More documentation: https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/template)

func (SchemaCopyable) Icon

func (s SchemaCopyable) Icon(value string) SchemaCopyable

Icon can configure the icon (class name in iconfont.)

func (SchemaCopyable) Tooltip

func (s SchemaCopyable) Tooltip(value string) SchemaCopyable

Tooltip sets the tooltip text content

type SchemaMessage

type SchemaMessage Schema

SchemaMessage represents a message configuration. Remember, this has the lowest priority. If your interface returns a msg, the interface return takes priority.

func NewSchemaMessage

func NewSchemaMessage() SchemaMessage

func (SchemaMessage) FetchFailed

func (s SchemaMessage) FetchFailed(value string) SchemaMessage

FetchFailed the prompt when fetching fails

func (SchemaMessage) FetchSuccess

func (s SchemaMessage) FetchSuccess(value string) SchemaMessage

FetchSuccess the prompt when fetching succeeds, default is empty.

func (SchemaMessage) SaveFailed

func (s SchemaMessage) SaveFailed(value string) SchemaMessage

SaveFailed the prompt when saving fails.

func (SchemaMessage) SaveSuccess

func (s SchemaMessage) SaveSuccess(value string) SchemaMessage

SaveSuccess the prompt when saving succeeds.

type SchemaPopOver

type SchemaPopOver Schema

func NewSchemaPopOver

func NewSchemaPopOver() SchemaPopOver

func (SchemaPopOver) Body

func (s SchemaPopOver) Body(value ...any) SchemaPopOver

Body sets the body content

func (SchemaPopOver) ClassName

func (s SchemaPopOver) ClassName(value string) SchemaPopOver

ClassName sets the class name

func (SchemaPopOver) Mode

func (s SchemaPopOver) Mode(value string) SchemaPopOver

Mode sets the pop-over mode, optional values: dialog, drawer, popOver

func (SchemaPopOver) Offset

func (s SchemaPopOver) Offset(value string) SchemaPopOver

Offset sets the offset value

func (SchemaPopOver) PopOverClassName

func (s SchemaPopOver) PopOverClassName(value string) SchemaPopOver

PopOverClassName sets the class name of the pop-over container

func (SchemaPopOver) PopOverEnableOn

func (s SchemaPopOver) PopOverEnableOn(value string) SchemaPopOver

PopOverEnableOn configures whether the current row is enabled, using an expression (syntax: `data.xxx > 5`)

func (SchemaPopOver) Position

func (s SchemaPopOver) Position(value string) SchemaPopOver

Position sets the pop-over position, optional values: center, left-top, left-top-left-top, ..., fixed-right-bottom

func (SchemaPopOver) ShowIcon

func (s SchemaPopOver) ShowIcon(value bool) SchemaPopOver

ShowIcon sets whether to show the view more icon, usually a magnifying glass icon

func (SchemaPopOver) Size

func (s SchemaPopOver) Size(value string) SchemaPopOver

Size sets the size of the pop-over window, optional values: sm, md, lg, xl

func (SchemaPopOver) Title

func (s SchemaPopOver) Title(value any) SchemaPopOver

Title sets the title content

func (SchemaPopOver) Trigger

func (s SchemaPopOver) Trigger(value string) SchemaPopOver

Trigger sets the trigger condition, default is click, optional values: click, hover

type State

type State Schema

State represents a State configuration.

func NewState

func NewState() State

func (State) Body

func (s State) Body(value ...any) State

Body sets the content.

func (State) ClassName

func (s State) ClassName(value string) State

ClassName sets the container CSS class name.

func (State) Disabled

func (s State) Disabled(value bool) State

Disabled sets whether the component is disabled.

func (State) DisabledOn

func (s State) DisabledOn(value string) State

DisabledOn sets the expression to determine if the component should be disabled.

func (State) EditorSetting

func (s State) EditorSetting(value string) State

EditorSetting sets the editor configuration.

func (State) Hidden

func (s State) Hidden(value bool) State

Hidden sets whether the component is hidden.

func (State) HiddenOn

func (s State) HiddenOn(value string) State

HiddenOn sets the expression to determine if the component should be hidden.

func (State) ID

func (s State) ID(value string) State

ID sets the unique component ID.

func (State) OnEvent

func (s State) OnEvent(value any) State

OnEvent sets the event action configuration.

func (State) Static

func (s State) Static(value bool) State

Static sets whether to display in static mode.

func (State) StaticClassName

func (s State) StaticClassName(value string) State

StaticClassName sets the CSS class for static display.

func (State) StaticInputClassName

func (s State) StaticInputClassName(value string) State

StaticInputClassName sets the CSS class for static value display.

func (State) StaticLabelClassName

func (s State) StaticLabelClassName(value string) State

StaticLabelClassName sets the CSS class for static label display.

func (State) StaticOn

func (s State) StaticOn(value string) State

StaticOn sets the expression to determine if the component should be displayed in static mode.

func (State) StaticPlaceholder

func (s State) StaticPlaceholder(value string) State

StaticPlaceholder sets the placeholder text for empty values in static display.

func (State) StaticSchema

func (s State) StaticSchema(value string) State

StaticSchema sets the schema for static display.

func (State) Style

func (s State) Style(value any) State

Style sets the component inline styles.

func (State) TestIdBuilder

func (s State) TestIdBuilder(value string) State

TestIdBuilder sets the test ID builder.

func (State) Testid

func (s State) Testid(value string) State

Testid sets the test ID.

func (State) Title

func (s State) Title(value any) State

Title sets the state title.

func (State) UseMobileUI

func (s State) UseMobileUI(value bool) State

UseMobileUI sets whether to disable mobile UI styles at component level.

func (State) Visible

func (s State) Visible(value bool) State

Visible sets whether the component is visible.

func (State) VisibleOn

func (s State) VisibleOn(value string) State

VisibleOn sets the expression to determine if the component should be visible.

type Step

type Step Schema

func NewStep

func NewStep() Step

func (Step) ClassName

func (s Step) ClassName(value string) Step

ClassName sets the container CSS class name Can be a string or an object for conditional classes Example: {"red": "data.progress > 80", "blue": "data.progress > 60"}

func (Step) Description

func (s Step) Description(value string) Step

Description sets the description text

func (Step) Disabled

func (s Step) Disabled(value bool) Step

Disabled sets whether the step is disabled

func (Step) DisabledOn

func (s Step) DisabledOn(value string) Step

DisabledOn sets the expression to determine if the step should be disabled

func (Step) EditorSetting

func (s Step) EditorSetting(value string) Step

EditorSetting sets the editor configuration, can be ignored at runtime

func (Step) Hidden

func (s Step) Hidden(value bool) Step

Hidden sets whether the step is hidden

func (Step) HiddenOn

func (s Step) HiddenOn(value string) Step

HiddenOn sets the expression to determine if the step should be hidden Expression syntax: data.xxx > 5

func (Step) ID

func (s Step) ID(value string) Step

ID sets the unique component ID, mainly used for log collection

func (Step) Icon

func (s Step) Icon(value string) Step

Icon sets the step icon

func (Step) OnEvent

func (s Step) OnEvent(value any) Step

OnEvent sets the event action configuration

func (Step) Static

func (s Step) Static(value bool) Step

Static sets whether to display in static mode

func (Step) StaticClassName

func (s Step) StaticClassName(value string) Step

StaticClassName sets the CSS class for static display Can be a string or an object for conditional classes Example: {"red": "data.progress > 80", "blue": "data.progress > 60"}

func (Step) StaticInputClassName

func (s Step) StaticInputClassName(value string) Step

StaticInputClassName sets the CSS class for static value display Can be a string or an object for conditional classes Example: {"red": "data.progress > 80", "blue": "data.progress > 60"}

func (Step) StaticLabelClassName

func (s Step) StaticLabelClassName(value string) Step

StaticLabelClassName sets the CSS class for static label display Can be a string or an object for conditional classes Example: {"red": "data.progress > 80", "blue": "data.progress > 60"}

func (Step) StaticOn

func (s Step) StaticOn(value string) Step

StaticOn sets the expression to determine if the step should be displayed in static mode Expression syntax: data.xxx > 5

func (Step) StaticPlaceholder

func (s Step) StaticPlaceholder(value string) Step

StaticPlaceholder sets the placeholder text for empty values in static display

func (Step) StaticSchema

func (s Step) StaticSchema(value string) Step

StaticSchema sets the schema for static display

func (Step) Style

func (s Step) Style(value any) Step

Style sets the component inline styles

func (Step) SubTitle

func (s Step) SubTitle(value any) Step

SubTitle sets the step subtitle

func (Step) TestIdBuilder

func (s Step) TestIdBuilder(value string) Step

TestIdBuilder sets the test ID builder

func (Step) Testid

func (s Step) Testid(value string) Step

Testid sets the test ID

func (Step) Title

func (s Step) Title(value any) Step

Title sets the step title

func (Step) UseMobileUI

func (s Step) UseMobileUI(value bool) Step

UseMobileUI sets whether to disable mobile UI styles at component level

func (Step) Value

func (s Step) Value(value string) Step

Value sets the step value

func (Step) Visible

func (s Step) Visible(value bool) Step

Visible sets whether the step is visible

func (Step) VisibleOn

func (s Step) VisibleOn(value string) Step

VisibleOn sets the expression to determine if the step should be visible Expression syntax: data.xxx > 5

type Tab

type Tab Schema

func NewTab

func NewTab() Tab

func (Tab) Badge

func (t Tab) Badge(value string) Tab

Badge sets the badge

func (Tab) Body

func (t Tab) Body(value ...any) Tab

Body sets the content

func (Tab) ClassName

func (t Tab) ClassName(value string) Tab

ClassName sets the container CSS class name

func (Tab) Closable

func (t Tab) Closable(value bool) Tab

Closable sets whether the tab is closable

func (Tab) Disabled

func (t Tab) Disabled(value bool) Tab

Disabled sets whether the tab is disabled

func (Tab) DisabledOn

func (t Tab) DisabledOn(value string) Tab

DisabledOn sets the expression to disable the tab

func (Tab) EditorSetting

func (t Tab) EditorSetting(value string) Tab

EditorSetting sets the editor configuration

func (Tab) Hash

func (t Tab) Hash(value string) Tab

Hash sets the URL hash

func (Tab) Hidden

func (t Tab) Hidden(value bool) Tab

Hidden sets whether the tab is hidden

func (Tab) HiddenOn

func (t Tab) HiddenOn(value string) Tab

HiddenOn sets the expression to hide the tab

func (Tab) Horizontal

func (t Tab) Horizontal(value string) Tab

Horizontal sets the horizontal layout ratio

func (Tab) ID

func (t Tab) ID(value string) Tab

ID sets the unique component ID

func (Tab) Icon

func (t Tab) Icon(value string) Tab

Icon sets the button icon

func (Tab) IconPosition

func (t Tab) IconPosition(value string) Tab

IconPosition sets the icon position (left or right)

func (Tab) Mode

func (t Tab) Mode(value string) Tab

Mode sets the default display mode (normal, inline, horizontal)

func (Tab) MountOnEnter

func (t Tab) MountOnEnter(value bool) Tab

MountOnEnter sets whether to load content on tab activation

func (Tab) OnEvent

func (t Tab) OnEvent(value any) Tab

OnEvent sets the event action configuration

func (Tab) Reload

func (t Tab) Reload(value bool) Tab

Reload sets whether to reload content on each render

func (Tab) Static

func (t Tab) Static(value bool) Tab

Static sets whether the tab is static

func (Tab) StaticClassName

func (t Tab) StaticClassName(value string) Tab

StaticClassName sets the static form item class name

func (Tab) StaticInputClassName

func (t Tab) StaticInputClassName(value string) Tab

StaticInputClassName sets the static form item value class name

func (Tab) StaticLabelClassName

func (t Tab) StaticLabelClassName(value string) Tab

StaticLabelClassName sets the static form item label class name

func (Tab) StaticOn

func (t Tab) StaticOn(value string) Tab

StaticOn sets the expression for static display

func (Tab) StaticPlaceholder

func (t Tab) StaticPlaceholder(value string) Tab

StaticPlaceholder sets the placeholder for static display

func (Tab) StaticSchema

func (t Tab) StaticSchema(value string) Tab

StaticSchema sets the static schema

func (Tab) Style

func (t Tab) Style(value string) Tab

Style sets the component style

func (Tab) Tab

func (t Tab) Tab(value ...any) Tab

Tab sets the tab content

func (Tab) TestIdBuilder

func (t Tab) TestIdBuilder(value string) Tab

TestIdBuilder sets the test ID builder

func (Tab) Testid

func (t Tab) Testid(value string) Tab

Testid sets the test ID

func (Tab) Title

func (t Tab) Title(value any) Tab

Title sets the tab title

func (Tab) UnmountOnExit

func (t Tab) UnmountOnExit(value bool) Tab

UnmountOnExit sets whether to destroy the tab node on hide

func (Tab) UseMobileUI

func (t Tab) UseMobileUI(value bool) Tab

UseMobileUI sets whether to disable mobile UI styles

func (Tab) Visible

func (t Tab) Visible(value bool) Tab

Visible sets whether the tab is visible

func (Tab) VisibleOn

func (t Tab) VisibleOn(value string) Tab

VisibleOn sets the expression to show the tab

type TableColumn

type TableColumn Schema

TableColumn represents a table column with default type as text.

func NewTableColumn

func NewTableColumn() TableColumn

func (TableColumn) Align

func (c TableColumn) Align(value string) TableColumn

Align sets the column alignment.

func (TableColumn) Breakpoint

func (c TableColumn) Breakpoint(value string) TableColumn

Breakpoint sets the breakpoint for footable.

func (TableColumn) CanAccessSuperData

func (c TableColumn) CanAccessSuperData(value bool) TableColumn

CanAccessSuperData allows the column to access parent data.

func (TableColumn) ClassName

func (c TableColumn) ClassName(value string) TableColumn

ClassName sets the column's CSS class.

func (TableColumn) ClassNameExpr

func (c TableColumn) ClassNameExpr(value string) TableColumn

ClassNameExpr sets the cell's CSS class expression.

func (TableColumn) Copyable

func (c TableColumn) Copyable(value bool) TableColumn

Copyable enables copy functionality for the column.

func (TableColumn) Filterable

func (c TableColumn) Filterable(value bool) TableColumn

Filterable enables filtering for the column.

func (TableColumn) Fixed

func (c TableColumn) Fixed(value string) TableColumn

Fixed sets the column as fixed.

func (TableColumn) HeaderAlign

func (c TableColumn) HeaderAlign(value string) TableColumn

HeaderAlign sets the header alignment.

func (TableColumn) InnerStyle

func (c TableColumn) InnerStyle(value any) TableColumn

InnerStyle sets custom styles for inner components.

func (TableColumn) Label

func (c TableColumn) Label(value string) TableColumn

Label sets the column label.

func (TableColumn) LabelClassName

func (c TableColumn) LabelClassName(value string) TableColumn

LabelClassName sets the CSS class for the column header.

func (TableColumn) LazyRenderAfter

func (c TableColumn) LazyRenderAfter(value string) TableColumn

LazyRenderAfter sets lazy rendering for many columns.

func (TableColumn) Name

func (c TableColumn) Name(value string) TableColumn

Name sets the field name the column binds to.

func (TableColumn) PopOver

func (c TableColumn) PopOver(value string) TableColumn

PopOver enables the popover for details.

func (TableColumn) QuickEdit

func (c TableColumn) QuickEdit(value string) TableColumn

QuickEdit enables quick edit functionality.

func (TableColumn) QuickEditOnUpdate

func (c TableColumn) QuickEditOnUpdate(value string) TableColumn

QuickEditOnUpdate sets quick edit panel for updates.

func (TableColumn) Remark

func (c TableColumn) Remark(value string) TableColumn

Remark sets the tooltip text.

func (TableColumn) Searchable

func (c TableColumn) Searchable(value bool) TableColumn

Searchable enables quick search for the column.

func (TableColumn) Sortable

func (c TableColumn) Sortable(value bool) TableColumn

Sortable enables sorting for the column.

func (TableColumn) Toggled

func (c TableColumn) Toggled(value bool) TableColumn

Toggled sets the column's default visibility.

func (TableColumn) Unique

func (c TableColumn) Unique(value bool) TableColumn

Unique sets the column as unique.

func (TableColumn) VAlign

func (c TableColumn) VAlign(value string) TableColumn

VAlign sets the vertical alignment.

func (TableColumn) Value

func (c TableColumn) Value(value string) TableColumn

Value sets the default value for the column.

func (TableColumn) Width

func (c TableColumn) Width(value string) TableColumn

Width sets the column width.

type TimelineItem

type TimelineItem Schema

TimelineItem represents a timeline item renderer

func NewTimelineItem

func NewTimelineItem() TimelineItem

func (TimelineItem) ClassName

func (t TimelineItem) ClassName(value string) TimelineItem

ClassName sets the CSS class name

func (TimelineItem) Color

func (t TimelineItem) Color(value string) TimelineItem

Color sets the color of the timeline point

func (TimelineItem) Detail

func (t TimelineItem) Detail(value string) TimelineItem

Detail sets the detailed content

func (TimelineItem) DetailClassName

func (t TimelineItem) DetailClassName(value string) TimelineItem

DetailClassName sets the CSS class name for the detail

func (TimelineItem) DetailCollapsedText

func (t TimelineItem) DetailCollapsedText(value string) TimelineItem

DetailCollapsedText sets the text when detail is collapsed

func (TimelineItem) DetailExpandedText

func (t TimelineItem) DetailExpandedText(value string) TimelineItem

DetailExpandedText sets the text when detail is expanded

func (TimelineItem) Disabled

func (t TimelineItem) Disabled(value bool) TimelineItem

Disabled sets whether the item is disabled

func (TimelineItem) DisabledOn

func (t TimelineItem) DisabledOn(value string) TimelineItem

DisabledOn sets the expression to determine if the item is disabled

func (TimelineItem) EditorSetting

func (t TimelineItem) EditorSetting(value string) TimelineItem

EditorSetting sets the editor configuration

func (TimelineItem) Hidden

func (t TimelineItem) Hidden(value bool) TimelineItem

Hidden sets whether the item is hidden

func (TimelineItem) HiddenOn

func (t TimelineItem) HiddenOn(value string) TimelineItem

HiddenOn sets the expression to determine if the item is hidden

func (TimelineItem) ID

func (t TimelineItem) ID(value string) TimelineItem

ID sets the unique ID for the component

func (TimelineItem) Icon

func (t TimelineItem) Icon(value string) TimelineItem

Icon sets the icon

func (TimelineItem) IconClassName

func (t TimelineItem) IconClassName(value string) TimelineItem

IconClassName sets the CSS class name for the icon

func (TimelineItem) OnEvent

func (t TimelineItem) OnEvent(value any) TimelineItem

OnEvent sets the event action configuration

func (TimelineItem) Static

func (t TimelineItem) Static(value bool) TimelineItem

Static sets whether the item is displayed statically

func (TimelineItem) StaticClassName

func (t TimelineItem) StaticClassName(value string) TimelineItem

StaticClassName sets the CSS class name for static display

func (TimelineItem) StaticInputClassName

func (t TimelineItem) StaticInputClassName(value string) TimelineItem

StaticInputClassName sets the CSS class name for static input display

func (TimelineItem) StaticLabelClassName

func (t TimelineItem) StaticLabelClassName(value string) TimelineItem

StaticLabelClassName sets the CSS class name for static label display

func (TimelineItem) StaticOn

func (t TimelineItem) StaticOn(value string) TimelineItem

StaticOn sets the expression to determine if the item is displayed statically

func (TimelineItem) StaticPlaceholder

func (t TimelineItem) StaticPlaceholder(value string) TimelineItem

StaticPlaceholder sets the placeholder for static display

func (TimelineItem) StaticSchema

func (t TimelineItem) StaticSchema(value string) TimelineItem

StaticSchema sets the static schema

func (TimelineItem) Style

func (t TimelineItem) Style(value any) TimelineItem

Style sets the component style

func (TimelineItem) TestIdBuilder

func (t TimelineItem) TestIdBuilder(value string) TimelineItem

TestIdBuilder sets the test ID builder

func (TimelineItem) Testid

func (t TimelineItem) Testid(value string) TimelineItem

Testid sets the test ID

func (TimelineItem) Time

func (t TimelineItem) Time(value string) TimelineItem

Time sets the time point

func (TimelineItem) TimeClassName

func (t TimelineItem) TimeClassName(value string) TimelineItem

TimeClassName sets the CSS class name for the time point

func (TimelineItem) Title

func (t TimelineItem) Title(value any) TimelineItem

Title sets the title of the time point

func (TimelineItem) TitleClassName

func (t TimelineItem) TitleClassName(value string) TimelineItem

TitleClassName sets the CSS class name for the title

func (TimelineItem) UseMobileUI

func (t TimelineItem) UseMobileUI(value bool) TimelineItem

UseMobileUI sets whether to use mobile UI

func (TimelineItem) Visible

func (t TimelineItem) Visible(value bool) TimelineItem

Visible sets whether the item is visible

func (TimelineItem) VisibleOn

func (t TimelineItem) VisibleOn(value string) TimelineItem

VisibleOn sets the expression to determine if the item is visible

type Toast

type Toast Schema

Toast represents a lightweight notification

func NewToast

func NewToast() Toast

func (Toast) Body

func (t Toast) Body(value ...any) Toast

Body sets the content

func (Toast) CloseButton

func (t Toast) CloseButton(value bool) Toast

CloseButton shows or hides the close button

func (Toast) Items

func (t Toast) Items(value ...ToastItem) Toast

Items sets the notification content

func (Toast) Level

func (t Toast) Level(value string) Toast

Level sets the icon type: 'info', 'success', 'error', 'warning'

func (Toast) Position

func (t Toast) Position(value string) Toast

Position sets the display position: top-right, top-center, top-left, bottom-center, bottom-left, bottom-right, center

func (Toast) ShowIcon

func (t Toast) ShowIcon(value bool) Toast

ShowIcon shows or hides the icon

func (Toast) Timeout

func (t Toast) Timeout(value string) Toast

Timeout sets the duration

func (Toast) Title

func (t Toast) Title(value any) Toast

Title sets the title

type ToastItem

type ToastItem Schema

func NewToastItem

func NewToastItem() ToastItem

func (ToastItem) AllowHtml

func (i ToastItem) AllowHtml(value bool) ToastItem

AllowHtml sets whether HTML content is allowed in the toast notification.

func (ToastItem) Body

func (i ToastItem) Body(value any) ToastItem

Body sets the body

func (ToastItem) CloseButton

func (i ToastItem) CloseButton(value bool) ToastItem

CloseButton sets whether to show a close button on the toast notification.

func (ToastItem) Level

func (i ToastItem) Level(value string) ToastItem

Level sets the level Valid levels include: 'info', 'success', 'error', 'warning'

func (ToastItem) Position

func (i ToastItem) Position(value string) ToastItem

Position sets the position property of ToastItem to the specified value. Valid positions include: 'top-right', 'top-center', 'top-left', 'bottom-center', 'bottom-left', 'bottom-right', 'center'.

func (ToastItem) ShowIcon

func (i ToastItem) ShowIcon(value bool) ToastItem

ShowIcon sets whether to show the icon

func (ToastItem) Timeout

func (i ToastItem) Timeout(value float64) ToastItem

Timeout sets the duration in milliseconds before the toast message disappears.

func (ToastItem) Title

func (i ToastItem) Title(value any) ToastItem

Title sets the title

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL