Crud

Crud

new Crud()

Properties:
Name Type Description
name string The CRUD name
url string The CRUD url
hasApi boolean Returns if CRUD has an API
isHasManyDetail boolean Returns if CRUD is a hasManyDetail relationship
isForLivewire boolean Returns if CRUD is for livewire
titles object Determines the CRUD titles
Properties
Name Type Description
index string Determines the CRUD index title
create string Determines the CRUD create title
edit string Determines the CRUD edit title
update string Determines the CRUD update title
show string Determines the CRUD show title
model Entity Related model
project Project The related project
inputs Array.<Input> Returns all inputs of this CRUD
hasManyDetail HasManyDetail Returns the hasManyDetail, if this is a detail CRUD
hasManyDetails Array.<HasManyDetail> Returns all hasManyDetail of this CRUD, if this is a Master CRUD
manyToManyComponents Array.<ManyToManyComponent> Returns all manyToManyComponent of this CRUD

Methods

getApiNamespace() → {array}

Returns the CRUD API Controller namespace
Returns:
Type
array

getApiRoutes() → {array}

Returns the CRUD api routes
Returns:
Type
array

getBelongsToInputs() → {Array.<Input>}

Returns the belongsTo inputs (for relationship selects)
Returns:
Type
Array.<Input>

getBelongsToInputsGroupedByCollection() → {array}

Returns the belongsTo input grouped by collection
Returns:
Type
array

getCheckboxInputs() → {Array.<Input>}

Returns the checkbox inputs
Returns:
Type
Array.<Input>

getControllerName() → {string}

Returns the controller name
Returns:
Type
string

getDateAndDatetimeInputs() → {Array.<Input>}

Returns the date and datetime inputs
Returns:
Type
Array.<Input>

getDateInputs() → {Array.<Input>}

Returns the date inputs
Returns:
Type
Array.<Input>

getDatetimeInputs() → {Array.<Input>}

Returns the datetime inputs
Returns:
Type
Array.<Input>

getEmailInputs() → {Array.<Input>}

Returns the email inputs
Returns:
Type
Array.<Input>

getFileAndImageInputs() → {Array.<Input>}

Returns the file and image inputs
Returns:
Type
Array.<Input>

getFileInputs() → {Array.<Input>}

Returns the file inputs
Returns:
Type
Array.<Input>

getHiddenInputs() → {Array.<Input>}

Returns the hidden inputs
Returns:
Type
Array.<Input>

getImageInputs() → {Array.<Input>}

Returns the image inputs
Returns:
Type
Array.<Input>

getInput(inputId) → {Input|undefined}

Returns the input by id
Parameters:
Name Type Description
inputId number
Returns:
Type
Input | undefined

getJsonInputs() → {Array.<Input>}

Returns the JSON inputs
Returns:
Type
Array.<Input>

getNamespace() → {array}

Returns the CRUD Controller namespace
Returns:
Type
array

getNumericInputs() → {Array.<Input>}

Returns the numeric inputs
Returns:
Type
Array.<Input>

getPasswordInputs() → {Array.<Input>}

Gets the password inputs
Returns:
Type
Array.<Input>

getRoutesPrefix() → {string}

Returns the routes prefix
Returns:
Type
string

getSelectInputs() → {Array.<Input>}

Returns the select inputs
Returns:
Type
Array.<Input>

getTextareaInputs() → {Array.<Input>}

Returns the textarea inputs
Returns:
Type
Array.<Input>

getTextInputs() → {Array.<Input>}

Returns the text inputs
Returns:
Type
Array.<Input>

getUrlInputs() → {Array.<Input>}

Returns the url inputs
Returns:
Type
Array.<Input>

getViewsPrefix() → {string}

Returns the views prefix
Returns:
Type
string

hasBelongsToInputs() → {boolean}

Check if it has belongsTo inputs
Returns:
Type
boolean

hasCheckboxInputs() → {boolean}

Check if it has checkbox inputs
Returns:
Type
boolean

hasDateInputs() → {boolean}

Check if it has date inputs
Returns:
Type
boolean

hasDateOrDatetimeInputs() → {boolean}

Check if it has date or datetime inputs
Returns:
Type
boolean

hasDatetimeInputs() → {boolean}

Check if it has datetime inputs
Returns:
Type
boolean

hasDifferentUpdateValidation() → {boolean}

Check if the update validation is different from store validation
Returns:
Type
boolean

hasEmailInputs() → {boolean}

Check if it has email inputs
Returns:
Type
boolean

hasFileInputs() → {boolean}

Check if it has file inputs
Returns:
Type
boolean

hasFileOrImageInputs() → {boolean}

Check if it has file or image inputs
Returns:
Type
boolean

hasHasManyDetail() → {boolean}

Check if has a hasManyDetail (if it is a detail CRUD)
Returns:
Type
boolean

hasHiddenInputs() → {boolean}

Check if it has hidden inputs
Returns:
Type
boolean

hasImageInputs() → {boolean}

Check if it has image inputs
Returns:
Type
boolean

hasJsonInputs() → {boolean}

Check if it has JSON inputs
Returns:
Type
boolean

hasNumericInputs() → {boolean}

Check if it has numeric inputs
Returns:
Type
boolean

hasPasswordInputs() → {boolean}

Check if it has password inputs
Returns:
Type
boolean

hasSelectInputs() → {boolean}

Check if it has select inputs
Returns:
Type
boolean

hasTextareaInputs() → {boolean}

Check if it has textarea inputs
Returns:
Type
boolean

hasTextInputs() → {boolean}

Check if it has text inputs
Returns:
Type
boolean

hasUrlInputs() → {boolean}

Check if it has url inputs
Returns:
Type
boolean