Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
68b764fc
Commit
68b764fc
authored
Jul 27, 2017
by
Sean Roberts
Committed by
GitHub
Jul 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #503 from hypothesis/on-layout-change-docs
Adding onLayoutChange documentation
parents
03a89ff7
cb67c28f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
config.rst
docs/publishers/config.rst
+25
-0
No files found.
docs/publishers/config.rst
View file @
68b764fc
...
@@ -288,6 +288,31 @@ loads.
...
@@ -288,6 +288,31 @@ loads.
of that text when it is being viewed as well as the font-family of the
of that text when it is being viewed as well as the font-family of the
editor as the annotation is being written.
editor as the annotation is being written.
.. option:: onLayoutChange
``function``. This function will be a registered callback to be invoked when the sidebar
layout changes. Changes to the layout occur on load, when the sidebar is toggled to
show and hide, and when the user adjusts the sidebar manually.
This setting can only be set using :js:func:`window.hypothesisConfig`.
When a layout change happens the registered :option:`onLayoutChange` function will
receive a single ``Object`` as it's argument. This object details the layout parameters
after the change.
Layout object available fields:
.. option:: expanded
``Boolean``. If the sidebar is open, this value will be true.
.. option:: height
``Number``. The current visible height of the sidebar.
.. option:: width
``Number``. The current visible width of the sidebar.
Asset and Sidebar App Location
Asset and Sidebar App Location
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment