Skip to content

Commit

Permalink
Demo code toggle updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Mar 13, 2023
1 parent 1caef9a commit 924dc74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/dynamicdialog/CloseDialogDoc.vue
Expand Up @@ -2,7 +2,7 @@
<DocSectionText v-bind="$attrs">
<p>The <i>close</i> function of the <i>dialogRef</i> is used to hide a Dialog. The <i>dialogRef</i> is injected to the component that is loaded by the dialog.</p>
</DocSectionText>
<DocSectionCode :code="code" import hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" importCode hideCodeSandbox hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/dynamicdialog/OpenDialogDoc.vue
Expand Up @@ -2,7 +2,7 @@
<DocSectionText v-bind="$attrs">
<p>The <i>open</i> function of the <i>DialogService</i> is used to open a Dialog. First parameter is the component to load and second one is the configuration object to customize the Dialog.</p>
</DocSectionText>
<DocSectionCode :code="code" import hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" importCode hideCodeSandbox hideStackBlitz />
</template>

<script>
Expand Down
8 changes: 4 additions & 4 deletions doc/dynamicdialog/PassingDataDoc.vue
Expand Up @@ -2,12 +2,12 @@
<DocSectionText v-bind="$attrs">
<p>Data can be passed to the component that is loaded by the Dialog and also from the component back to the caller component. Use the <i>open</i> function and pass your parameters with the <i>data</i> property in the options object.</p>

<DocSectionCode :code="code1" import hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code2" import hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code1" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code2" hideToggleCode importCode hideCodeSandbox hideStackBlitz />

<p>Similarly when hiding a Dialog, any parameter passed to the <i>close</i> function is received from the <i>onClose</i> callback defined by the <i>open</i> function at the caller.</p>
<DocSectionCode :code="code3" import hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code4" import hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code3" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code4" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
</DocSectionText>
</template>

Expand Down

0 comments on commit 924dc74

Please sign in to comment.