LiveAntd.Components.SearchForm (live_antd v0.1.0)
search component.
API
- [x]
fields
: form fileds properties - [x]
onSubmit
: submit event. - [x]
onChange
: form fields change.
Example
fields = [
%{
label: "event_name",
title: "AA",
type: "string",
default: false,
name: "aa",
"x-component": "select"
enum: [
{
"label": "visible",
"value": true
},
{
"label": "hidden",
"value": false
}
],
}
]
<SearchForm
onSubmit={{@onSubmit}}
onChange={{@onChange}}
fields={{@fields}}
/>
Properties
- onSubmit :event
- onChange :event
- fields :list, required: true
- filter :map, default: %{}
- class :css_class
- style :string
Link to this section Summary
Functions
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.render/1
.
Link to this section Functions
Link to this function
mount(socket)
Callback implementation for Phoenix.LiveComponent.mount/1
.
Link to this function
render(assigns)
Callback implementation for Phoenix.LiveComponent.render/1
.