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 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.
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 added a subscriber: Jdforrester-WMF.

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