mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-12 08:18:07 +00:00
51 lines
1.4 KiB
Vue
51 lines
1.4 KiB
Vue
<template>
|
|
<div class="api-docs__item">
|
|
<div class="api-docs__left">
|
|
<h3
|
|
:id="'section-table-' + table.id + '-delete'"
|
|
class="api-docs__heading-3"
|
|
>
|
|
{{ $t('apiDocs.deleteRow') }}
|
|
</h3>
|
|
<p class="api-docs__content">
|
|
{{ $t('apiDocsTableDeleteRow.description', table) }}
|
|
</p>
|
|
<h4 class="api-docs__heading-4">{{ $t('apiDocs.pathParameters') }}</h4>
|
|
<ul class="api-docs__parameters">
|
|
<APIDocsParameter name="row_id" type="integer">
|
|
{{ $t('apiDocsTableDeleteRow.rowId') }}
|
|
</APIDocsParameter>
|
|
</ul>
|
|
</div>
|
|
<div class="api-docs__right">
|
|
<APIDocsExample
|
|
:value="value"
|
|
type="DELETE"
|
|
:url="getItemUrl(table, false)"
|
|
:include-user-fields-checkbox="false"
|
|
@input="$emit('input', $event)"
|
|
></APIDocsExample>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import APIDocsExample from '@baserow/modules/database/components/docs/APIDocsExample'
|
|
import APIDocsParameter from '@baserow/modules/database/components/docs/APIDocsParameter'
|
|
|
|
export default {
|
|
name: 'APIDocsTableDeleteRow',
|
|
components: {
|
|
APIDocsParameter,
|
|
APIDocsExample,
|
|
},
|
|
props: {
|
|
value: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
table: { type: Object, required: true },
|
|
getItemUrl: { type: Function, required: true },
|
|
},
|
|
}
|
|
</script>
|