open System
open FSharp.ViewEngine
open Acme.Components.Primitives
open Acme.Components.Application
open type Html
open type Svg
open type Datastar
let rowActionsExample =
div {
_dataSignals "{rowActionMessage: 'No row action requested.'}"
_class "grid gap-3"
RowActions.create "operating-row-actions" "Operating checking" [
MenuItem.link "/components/page-examples/account-management?destination=ledger-account-2048" "View account"
MenuItem.link "/components/detail" "View detail"
MenuItem.destructiveAction "$rowActionMessage = 'Archive requested for Operating checking.'" "Archive account" ]
|> RowActions.render id
output { _ariaLive "polite"; _dataText "$rowActionMessage"; _class "text-sm text-[var(--fve-muted-text)]"; "No row action requested." }
}