mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-05 21:55:24 +00:00
61 lines
1.4 KiB
Vue
61 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">Deletes an existing {{ table.name }} row.</p>
|
|
<h4 class="api-docs__heading-4">Path parameters</h4>
|
|
<ul class="api-docs__parameters">
|
|
<APIDocsParameter name="row_id" type="integer">
|
|
The unique identifier of the row that needs to be deleted.
|
|
</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 },
|
|
},
|
|
methods: {},
|
|
}
|
|
</script>
|
|
|
|
<i18n>
|
|
{
|
|
"en": {
|
|
"APIDocsTableDeleteRow":{
|
|
}
|
|
},
|
|
"fr": {
|
|
}
|
|
}
|
|
</i18n>
|