Error Page
EXAMPLES 1
error_page(code=404, title='Not Found', message='The page you are looking for does not exist.')
USAGE
from djust_components.components.error_page import ErrorPage
component = ErrorPage(code=500,
title='Something went wrong',
message='',
action_url='/',
action_label='Go Home',
custom_class='',
kwargs)
html = component.render()
PARAMETERS 7
| Name | Type | Default |
|---|---|---|
code |
<class 'int'> |
500 |
title |
<class 'str'> |
'Something went wrong' |
message |
<class 'str'> |
'' |
action_url |
<class 'str'> |
'/' |
action_label |
<class 'str'> |
'Go Home' |
custom_class |
<class 'str'> |
'' |
kwargs |
— |
— |