Commit 44f393d0 authored by Michael Nolan's avatar Michael Nolan

cleanup example module and add alter hook

parent bd8e1109
......@@ -2,8 +2,3 @@ dashboard-css:
css:
theme:
css/dashboard.css: {}
template_one-css:
css:
theme:
css/template_one.css: {}
......@@ -28,3 +28,10 @@ function ajax_dashboard_example_user_view(array &$build, \Drupal\Core\Entity\Ent
$build['ajax_dashboard_example'] = $dashboard;
}
}
/**
* Implements hook_ajax_dashboard_alter
*/
function ajax_dashboard_example_ajax_dashboard_alter(&$dashboard) {
// You may select a dashboard from $dashboard['id'], and modify its structure.
}
.ajax-dashboard-container {
display: table;
width: 100%;
padding: 1rem;
}
.sections-wrapper, .dashboard-wrapper {
display: table-cell;
}
.sections-wrapper {
width: 20%;
max-width: 200px;
padding: 1rem;
}
.dashboard-wrapper {
width: auto;
padding: 1rem;
}
.dashboard-wrapper {
background-color: #f0f0f0;
}
.sections-wrapper {
background-color: #d0e0f0;
}
.sections-wrapper button {
color: #2c3e50;
text-align: left;
background-color: transparent;
width: 100%;
border: unset;
border-radius: unset;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment