Skip to content

Commit

Permalink
Low Code callbacks are back
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausSchaefers committed Sep 8, 2024
1 parent e1257a2 commit 2ba86b5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
13 changes: 7 additions & 6 deletions src/canvas/toolbar/components/CallBackSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
placeholder="Click callback"
:value="callbacks.click"
@change="onClickChange"/>
<span class="mdi mdi-cursor-default MatcToobarInputIcon" />
<QIcon icon="EventClick"/>

</div>
<div class="MatcToolbarItem MatcToobarInputIconCntr" v-show="!isScreen && isInput" ref="tooltipChange">
Expand All @@ -16,7 +16,7 @@
placeholder="Change callback"
:value="callbacks.change"
@change="onChangeChange"/>
<span class="mdi mdi-database MatcToobarInputIcon" />
<QIcon icon="EventData"/>

</div>
<div class="MatcToolbarItem MatcToobarInputIconCntr" v-show="isScreen" ref="tooltipLoad">
Expand All @@ -25,26 +25,26 @@
placeholder="Load callback"
:value="callbacks.load"
@change="onLoadChange"/>
<span class="mdi mdi-backup-restore MatcToobarInputIcon" />
<QIcon icon="EventLoaded"/>

</div>

<div class="MatcToolbarItem MatcToobarInputIconCntr" ref="tooltipRender">
<!-- <div class="MatcToolbarItem MatcToobarInputIconCntr" ref="tooltipRender">
<input class="MatcIgnoreOnKeyPress MatcToobarInlineEdit MatcToobarInput"
placeholder="Render callback"
:value="callbacks.css"
@change="onRenderChange"/>
<span class="mdi mdi-format-paint MatcToobarInputIcon" />
</div>
</div> -->
</div>
</template>
<script>
import DojoWidget from 'dojo/DojoWidget'
import _Tooltip from 'common/_Tooltip'
import QIcon from 'page/QIcon'
export default {
name: 'LowCodeSection',
mixins:[_Tooltip, DojoWidget],
Expand All @@ -66,6 +66,7 @@ export default {
}
},
components: {
'QIcon': QIcon
},
methods: {
onWrapChange (value){
Expand Down
2 changes: 1 addition & 1 deletion src/canvas/toolbar/mixins/_Render.vue
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ export default {
/**
* Callbacks
*/
parent = this.createSection("Callbacks", true);
parent = this.createSection("Low Code Callbacks", true);
content = document.createElement("div");
css.add(content, "MatcToolbarSectionContent");
parent.appendChild(content);
Expand Down
3 changes: 3 additions & 0 deletions src/canvas/toolbar/mixins/_ShowScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export default {
if(this.screenAnimationDiv){
css.remove(this.screenAnimationDiv, "MatcToolbarSectionHidden")
}
css.remove(this.callBackDiv, "MatcToolbarSectionHidden")
this.callbackSection.setValue(model, 'screen')
},
showScreenDesignProperties (model) {
Expand Down
4 changes: 4 additions & 0 deletions src/canvas/toolbar/mixins/_ShowWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export default {
this.tooltipSettings.setBox(model)
this.showDesignTokenBtns(model, 'widget')
this.callbackSection.setValue(model)
css.remove(this.callBackDiv, "MatcToolbarSectionHidden")
},
showWidgetDesignProperties (model) {
Expand Down
2 changes: 0 additions & 2 deletions src/style/bulma.sass
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ td.action .button
.input, .textarea
box-shadow: none

.input::placeholder
color: #cccccc

.MatcShareDialog .input
width: 97%
Expand Down
4 changes: 4 additions & 0 deletions src/style/toolbar/toolbar_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@
border-color: $toolbar_form_border_focus;
background: $toolbar_form_background_focus;
}

&::placeholder {
color: $toolbar_color_passive;
}
}

.MatcToobarInputInlineEdit{
Expand Down

0 comments on commit 2ba86b5

Please sign in to comment.