Page MenuHomePhabricator

Create @example demo for CalendarWidget and DateInputWidget
Closed, ResolvedPublic


T97425 created two widgets but they're not exposed anywhere.

Since we don't have a public demo for mediawiki widgets, maybe we can use the API documentation examples for now as a place to provide an interactive test demo and example show case.!/api/mw.widgets.CalendarWidget!/api/mw.widgets.DateInputWidget

Similar to what we have for OOjs UI core widgets like!/api/OO.ui.ButtonWidget which have a Show Preview and Code Example.

Event Timeline

Krinkle created this task.Jul 29 2015, 3:48 AM
Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle added projects: MediaWiki-Interface, OOUI.
Krinkle added a subscriber: Krinkle.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 29 2015, 3:48 AM
matmarex claimed this task.Jul 31 2015, 9:33 PM
matmarex added a subscriber: matmarex.

I had some demos for testing at , I'll adapt them.

matmarex triaged this task as Medium priority.Aug 4 2015, 1:59 PM

Change 226647 had a related patch set uploaded (by Bartosz Dziewoński):
mw.widgets.DateInputWidget: Add @example

Change 226647 merged by jenkins-bot:
mw.widgets.DateInputWidget: Add @example

Jdforrester-WMF closed this task as Resolved.Aug 4 2015, 6:21 PM
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

Well,!/api/mw.widgets.DateInputWidget doesn't exactly work perfectly as the live preview is broken, but it "works".

Jdforrester-WMF moved this task from Backlog to Reviewing on the OOUI board.Aug 7 2015, 6:25 PM