-
Notifications
You must be signed in to change notification settings - Fork 20
Conversation
774ea2e
to
25ebaf5
Compare
I guess you'll be adding a way to disable it too? we have |
Unlike the close and expand button, which is enabled by default, the popup button isn't enabled by default (because it relies on a provided URL for the popup to work, and by default such URL is not provided). |
Let's not reuse the term "popup", Edit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feature works great, just need to focus on clarity and wording to Users.
docs/example/accordionDocs.vue
Outdated
<p>popup-url</p> | ||
<p><code>String</code></p> | ||
<p></p> | ||
<p>The url to display in the popup window.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should highlight to the User that either a remote web url or local directory path can be given.
docs/example/accordionDocs.vue
Outdated
@@ -95,6 +95,20 @@ | |||
<doc-code language="markup"> | |||
<panel header="Dynamic Loading" src="/docs/loadContent.html#fragment" minimized></panel> | |||
</doc-code> | |||
<br> | |||
|
|||
<h4>If <code>popup-url</code> attribute is provided, the panel shows a popup button, which when clicked, opens a new window to the specified url.</h4> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
" ... is provided, a popup button will be displayed. Upon clicking, it opens a new window to the contents of the specified url or directory path."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually still an (absolute, root-relative or relative) URL.
docs/example/accordionDocs.vue
Outdated
<div class="bs-example"> | ||
<panel header="Some panel" popup-url="/docs/loadContent.html"> | ||
This panel has a popup. | ||
</panel> | ||
</div> | ||
<doc-code language="markup"> | ||
<panel header="Some panel" popup-url="/docs/loadContent.html"> | ||
... | ||
<div class="."></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, my apologies, not intentional (not sure how it got there, WebStorm expanded it? :P)
36f259c
to
a2639f7
Compare
Minor error in the documentation fixed. |
src/Panel.vue
Outdated
@@ -34,6 +34,10 @@ | |||
@click.stop="close()"> | |||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> | |||
</button> | |||
<button type="button" class="popup-button btn btn-default" | |||
v-show="this.popupUrl !== null" @click.stop="openPopup()"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@click.stop
on new line.
docs/example/accordionDocs.vue
Outdated
<p><code>String</code></p> | ||
<p></p> | ||
<p>The url that the popup window will navigate to. The url can be absolute, relative or root-relative.</p> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move after bottom-switch
for now (switch options are grouped).
docs/example/accordionDocs.vue
Outdated
|
||
<h4>If <code>popup-url</code> attribute is provided, a popup button will be displayed. Upon clicking, it opens a new window to the specified url.</h4> | ||
<div class="bs-example"> | ||
<panel header="Some panel" popup-url="/docs/loadContent.html"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Root-relative url likely won't work when published on GitHub. See 7dcb507.
docs/example/accordionDocs.vue
Outdated
</div> | ||
<doc-code language="markup"> | ||
<panel header="Some panel" popup-url="/docs/loadContent.html"> | ||
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For simple content, show as-is.
docs/example/accordionDocs.vue
Outdated
@@ -95,6 +95,20 @@ | |||
<doc-code language="markup"> | |||
<panel header="Dynamic Loading" src="/docs/loadContent.html#fragment" minimized></panel> | |||
</doc-code> | |||
<br> | |||
|
|||
<h4>If <code>popup-url</code> attribute is provided, a popup button will be displayed. Upon clicking, it opens a new window to the specified url.</h4> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
- "will be
shown
" for consistent grammar in this docs. - "If clicked, it opens the specified url in a new window."
a2639f7
to
48abc9a
Compare
da47913
to
ff9d50c
Compare
What is the purpose of this pull request? (put "X" next to an item, remove the rest)
• [X] New feature
Resolves MarkBind/markbind#225
What is the rationale for this request?
User wants a way to add popup windows for panels.
What changes did you make? (Give an overview)
Panel
.Panel
a new attributepopup-url
, which when specified, will be the URL that the popup window button navigates to.Provide a demo:
Is there anything you'd like reviewers to focus on?
The description of the new button in the documentation.
Testing instructions: