In the script I am working on,[1] I have a PanelLayout that is defined like
this:
this.previewResult = new OO.ui.PanelLayout({
expanded: true,
padded: true,
framed: true,
$content: ''
});
Later on, I would like to modify the content of this; specifically, I want
to use MW API to retrieve the parsed output of some short wikitext. For
now, however, I just want to try out the concept by replacing the content
with a simple <p> tag.
Evidently, this line of code does not do the trick:
dialog.previewResult.$content = '<p>Something</p>';
That is, it does update the value of the $content property for the OOUI
object, but that does not result in the object getting re-rendered. None of
the setter functions for OO.ui.PanelLayout seem to do the trick either.
What is the correct way to do this? If PanelLayout is not the right object
type for this purpose, what is?
Hi,
I am trying to make a continuous StackLayout with three parts (top, middle
and bottom), where the top panel contains an IndexLayout. My code is at
https://meta.wikimedia.org/wiki/User:Huji/OOUI.js and as you can see, in
the output of it the bottom and middle panels are shown "on top of" the top
panel. This only occurs when the top panel is an IndexLayout; if I replace
its contents with any other element, no overlap occurs.
Can you please guide me as to who to achieve what I want?
Thanks!
Huji
PS: The context here is that eventually each tab in the IndexLayout will
present the user with some buttons; when they select a button from one of
the tabs, the middle and bottom panels will be used to preview the output
of that button and then save it to the page.
Hi Community Metrics team,
This is your automatic monthly Phabricator statistics mail.
Accounts created in (2019-03): 402
Active Maniphest users (any activity) in (2019-03): 1059
Task authors in (2019-03): 547
Users who have closed tasks in (2019-03): 296
Projects which had at least one task moved from one column to another on
their workboard in (2019-03): 297
Tasks created in (2019-03): 2356
Tasks closed in (2019-03): 1903
Open and stalled tasks in total: 41430
Median age in days of open tasks by priority:
Unbreak now: 9
Needs Triage: 479
High: 815
Normal: 1062
Low: 1441
Lowest: 1401
(How long tasks have been open, not how long they have had that priority)
Active Differential users (any activity) in (2019-03): 9
TODO: Numbers which refer to closed tasks might not be correct, as
described in https://phabricator.wikimedia.org/T1003 .
Yours sincerely,
Fab Rick Aytor
(via community_metrics.sh on phab1001 at Mon Apr 1 00:00:19 UTC 2019)