Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador Video
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
IIIF
Mirador
Mirador Video
Commits
afa0281b
Commit
afa0281b
authored
Jan 30, 2023
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
WIP on accordion in a component
parent
2e19c18a
No related branches found
No related tags found
2 merge requests
!13
Manifest side to side
,
!11
Draft: 33 8 open an other manifest side by side from an annotation
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/CanvasAnnotations.js
+7
-45
7 additions, 45 deletions
src/components/CanvasAnnotations.js
with
7 additions
and
45 deletions
src/components/CanvasAnnotations.js
+
7
−
45
View file @
afa0281b
...
...
@@ -30,6 +30,7 @@ export class CanvasAnnotations extends Component {
this
.
handleAnnotationHover
=
this
.
handleAnnotationHover
.
bind
(
this
);
this
.
handleAnnotationBlur
=
this
.
handleAnnotationBlur
.
bind
(
this
);
this
.
handleOpenManifestSideToSide
=
this
.
handleOpenManifestSideToSide
.
bind
(
this
);
this
.
handleAccordion
=
this
.
handleAccordion
.
bind
(
this
);
}
/**
...
...
@@ -67,6 +68,10 @@ export class CanvasAnnotations extends Component {
addWindow
({
manifestId
});
}
handleAccordion
()
{
console
.
log
(
"
openAccordion
"
);
}
/**
* Returns the rendered component
*/
...
...
@@ -137,54 +142,11 @@ export class CanvasAnnotations extends Component {
))
}
<
/div
>
<
/ListItemText
>
<
/MenuItem
>
{
(
annotation
.
idIsManifest
||
annotation
.
manifestsInContent
)
&&
(
<
div
>
<
Accordion
>
<
AccordionSummary
expandIcon
=
{
<
ExpandMoreIcon
/>
}
>
<
Typography
className
=
{
classes
.
heading
}
>
Manifests
found
:
<
/Typography
>
<
/AccordionSummary
>
<
AccordionDetails
>
<
Typography
>
{
annotation
.
idIsManifest
&&
(
<
div
className
=
{
classes
.
manifestOpeningWrapper
}
>
<
div
>
{
annotation
.
id
}
<
/div
>
<
MiradorMenuButton
aria
-
haspopup
=
"
true
"
aria
-
label
=
{
t
(
'
openManifestInOtherWindow
'
,
{
manifest
:
annotation
.
id
})}
titleAccess
=
{
t
(
'
openManifestInOtherWindow
'
,
{
manifest
:
annotation
.
id
})}
onClick
=
{(
e
)
=>
{
this
.
handleOpenManifestSideToSide
(
e
,
annotation
.
id
);
}}
className
=
{
classes
.
manifestOpeningButton
}
>
<
PlaylistAddIcon
/>
<
/MiradorMenuButton
>
<
/div
>
)}
{
annotation
.
manifestsInContent
&&
annotation
.
manifestsInContent
.
map
(
manifestId
=>
(
<
div
className
=
{
classes
.
manifestOpeningWrapper
}
>
<
div
>
{
manifestId
}
<
/div
>
<
MiradorMenuButton
aria
-
haspopup
=
"
true
"
aria
-
label
=
{
t
(
'
openManifestInOtherWindow
'
)}
titleAccess
=
{
t
(
'
openManifestInOtherWindow
'
)}
onClick
=
{(
e
)
=>
{
this
.
handleOpenManifestSideToSide
(
e
,
manifestId
);
}}
className
=
{
classes
.
manifestOpeningButton
}
>
<
PlaylistAddIcon
/>
<
/MiradorMenuButton
>
<
/div
>
))}
<
/Typography
>
<
/AccordionDetails
>
<
/Accordion
>
<
/div
>
)
}
<
/ScrollTo
>
))
}
...
...
This diff is collapsed.
Click to expand it.
Anthony
@anthony
mentioned in commit
1902bafc
·
Feb 2, 2023
mentioned in commit
1902bafc
mentioned in commit 1902bafcab8e6b9d62e7c7c881927d2e45d71f7a
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment