nuxt-x-app-admin
Content Media
Media library with grid / list views, type filter, upload, copy-URL, view, and delete actions.
Content Media
Media library with grid / list views, type filter, upload, copy-URL, view, and delete actions.
Components
<XAdminContentMedia />
Props, events, and behaviour reflect the actual <script setup> of XAdmin/Content/Media/index.vue in @xenterprises/nuxt-x-app-admin.
<XAdminContentMedia />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
endpoint | String | 'admin/content/media' | API endpoint for the media list. |
searchable | Boolean | true | Show search input. |
paginated | Boolean | true | Enable client-side pagination. |
pageSize | Number | 24 | Items per page (4/6 grid friendly). |
selectable | Boolean | false | Render selection checkboxes; emits update:modelValue with array. |
modelValue | Array | [] | v-model array of selected media items. |
Emits
| Event | Payload | Description |
|---|---|---|
upload | varies | Fired when a media file is uploaded. |
view | varies | Fired on 'View' action. |
delete | varies | Fired after a delete succeeds. |
update:modelValue | varies | Standard v-model update for modelValue. |
AI Context
component: XAdminContentMedia
package: "@xenterprises/nuxt-x-app-admin"
category: Content
source: app/components/XAdmin/Content/Media/index.vue
use-when: Media library with grid / list views, type filter, upload, copy-URL, view, and delete actions.
