File:Click to Switch (m).7z

From SpinetiX Support Wiki

Jump to: navigation, search
Click_to_Switch_(m).7z(file size: 5 KB, MIME type: application/x-7z-compressed)
Warning: This file type may contain malicious code. By executing it, your system may be compromised.

Tutorial

In older versions of Elementi, the "Click to Switch" interactive widget was using a text layer as default "page". The text layer can be edited from the "Switched Layer" property. To customize this widget to allow for a media layer to be used as default "page", follow these steps:

  1. Import the "Click to Switch" widget into your project and open it.
  2. Go the XML Tree view.
  3. Open the second <title> element under the <defs> element. (i.e. the one having xml:id = jsonParams)
  4. Click on the CDATA in green. An editing box will open.
  5. Change the constructor to be "media" (i.e. "ctor": "media",).
  6. Delete this line: "textContent": "Switched Layer" and the comma sign on the preceding line.
  7. Press OK to save the changes.
  8. Go back to the "Properties" view and drag & drop a media on top of the "Switched Layer" media container.
Note  
See more about how to customize an Elementi widget.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current18:06, 25 September 2013 (5 KB)NicusorCheles (talk | contribs)"Click to Switch" widget using a media layer as default page.
  • You cannot overwrite this file.

There are no pages that link to this file.

This page was last modified on 13 September 2019, at 12:01.