Skip to content
Snippets Groups Projects
Commit adc0763d authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

tabs

parent 2e3439e6
No related branches found
No related tags found
No related merge requests found
Pipeline #394933 passed
...@@ -2534,11 +2534,10 @@ html[dir=rtl] .hint-container.danger .hint-container-title:before { ...@@ -2534,11 +2534,10 @@ html[dir=rtl] .hint-container.danger .hint-container-title:before {
display: flex !important; display: flex !important;
} }
#All, #MediAbout { .FirstTab{
display: block; display: block !important;
} }
.tabcontent{
.tabtabs, .tabbys, .meditabs, .timelinecardtabs, .timelinepersontabs{
display: none; display: none;
} }
......
// If new cla (class) is added it has to be added to css giving it display: none; as default // The main tab has to be given display: block; via id css or be given the id "First"
// The main tab has to be given display: block; via id css
export function ButtonRowTabs({data, cla}: {data: Array<TabDatensatz>, cla: string}) { export function ButtonRowTabs({data, cla}: {data: Array<TabDatensatz>, cla: string}) {
let rows = [] let rows = []
let classy = "tabcontent " + cla;
for ( let i = 0; i < data.length; i++ ){ for ( let i = 0; i < data.length; i++ ){
if (i === 1){
classy += " First"
}
rows.push( rows.push(
<div id={data[i].cssname} className={cla}> <div id={data[i].cssname} className={classy}>
{data[i].node} {data[i].node}
</div> </div>
) )
...@@ -13,9 +16,13 @@ export function ButtonRowTabs({data, cla}: {data: Array<TabDatensatz>, cla: stri ...@@ -13,9 +16,13 @@ export function ButtonRowTabs({data, cla}: {data: Array<TabDatensatz>, cla: stri
} }
export function BFHStyleTabs({data, cla}: {data: Array<NodeDatensatz>, cla: string}) { export function BFHStyleTabs({data, cla}: {data: Array<NodeDatensatz>, cla: string}) {
let rows = [] let rows = []
let classy = "tabcontent " + cla;
for ( let i = 0; i < data.length; i++ ){ for ( let i = 0; i < data.length; i++ ){
if (i === 1){
classy += " First"
}
rows.push( rows.push(
<div id={data[i].cssname} className={cla}> <div id={data[i].cssname} className={classy}>
{data[i].node} {data[i].node}
</div> </div>
) )
......
...@@ -276,7 +276,7 @@ export function Description() { ...@@ -276,7 +276,7 @@ export function Description() {
{ {
node: <div>About</div>, node: <div>About</div>,
buttonname: "About", buttonname: "About",
cssname: "MediAbout" cssname: "First"
}, },
{ {
......
...@@ -16,7 +16,7 @@ let timelinebuttonrowdata = [ ...@@ -16,7 +16,7 @@ let timelinebuttonrowdata = [
{ {
buttonname: "All", buttonname: "All",
node: <TimeHori tab="" ></TimeHori>, node: <TimeHori tab="" ></TimeHori>,
cssname: "All" cssname: "First"
}, },
{ {
node: <TimeHori tab="Patient" ></TimeHori>, node: <TimeHori tab="Patient" ></TimeHori>,
...@@ -25,7 +25,7 @@ let timelinebuttonrowdata = [ ...@@ -25,7 +25,7 @@ let timelinebuttonrowdata = [
}, },
{ {
node: <TimeHori tab="Medical Professional" ></TimeHori>, node: <TimeHori tab="Medical Professional" ></TimeHori>,
buttonname: "Mediacl Professionals", buttonname: "Medical Professionals",
cssname: "Medical" cssname: "Medical"
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment