primevue-mirror/apps/labs/doc/inputtext/DisabledDoc.vue

32 lines
792 B
Vue
Raw Normal View History

2025-02-28 11:49:42 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
</DocSectionText>
<div class="card flex justify-center">
2025-02-28 22:59:25 +00:00
<PlexInputText v-model="value" disabled placeholder="Disabled" />
2025-02-28 11:49:42 +00:00
</div>
2025-02-28 22:59:25 +00:00
<DocSectionCode :code="code" hideToggleCode hideStackBlitz />
2025-02-28 11:49:42 +00:00
</template>
<script setup>
2025-02-28 22:59:25 +00:00
import PlexInputText from '@/plex/inputtext';
import { ref } from 'vue';
const value = ref(null);
const code = ref(`
2025-02-28 11:49:42 +00:00
<template>
<div class="card flex justify-center">
2025-02-28 22:59:25 +00:00
<PlexInputText v-model="value" disabled placeholder="Disabled" />
2025-02-28 11:49:42 +00:00
</div>
</template>
<script setup>
2025-02-28 22:59:25 +00:00
import PlexInputText from '@/plex/inputtext';
2025-02-28 11:49:42 +00:00
import { ref } from 'vue';
const value = ref(null);
<\/script>
2025-02-28 22:59:25 +00:00
`);
2025-02-28 11:49:42 +00:00
</script>