- Add ability to bind to inputs - Add customizable button text - Add example for requester modal with binding
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
<div>
|
|
<layout:Container>
|
|
<div class="d3c-1684441516-flex">
|
|
<vg-comp expr="c.IconSlot"></vg-comp>
|
|
<span vg-content="c.Message" style="white-space: pre-wrap;"></span>
|
|
</div>
|
|
<div vg-if="c.InputBind != nil" class="d3c-1684441516-flex" style="justify-content: flex-end; align-items: baseline;">
|
|
<input:Field :Bind="c.InputBind"></input:Field>
|
|
</div>
|
|
<div class="d3c-1684441516-flex" style="justify-content: flex-end; align-items: baseline;">
|
|
<input:Button vg-if="c.ClickAbort != nil" @Click="c.handleClickAbort(event)"><div vg-content="c.buttonTextAbort()"></div></input:Button>
|
|
<input:Button vg-if="c.ClickYes != nil" @Click="c.handleClickYes(event)"><div vg-content="c.buttonTextYes()"></div></input:Button>
|
|
<input:Button vg-if="c.ClickNo != nil" @Click="c.handleClickNo(event)"><div vg-content="c.buttonTextNo()"></div></input:Button>
|
|
</div>
|
|
</layout:Container>
|
|
</div>
|
|
|
|
<style>
|
|
.d3c-1684441516-flex {
|
|
margin: 0.5em 0;
|
|
display: flex;
|
|
gap: 0.5em;
|
|
}
|
|
</style>
|
|
|
|
<script type="application/x-go">
|
|
import (
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/layout"
|
|
)
|
|
</script>
|