Skip to main content

WYSIWYG

Wysiwyg allows you to visualy edit your web application using:

Wysiwyg menusIconDescription
Floating action button (menu)TippyIntegrates UI for code generator, translations ... and allows hide tippy
Tippy (hover)TippyInline information/editing about hovered components. Tippy works in readonly mode and edit mode

Floating Action Button (menu)

Floating action button is displayed in bottom left corner of the page:

Floating Action Button bottom left corner

Floating action button opens menu with following items:

Menu of the Floating Action ButtonDescription
Commit/save changes
Generate pages
Add/generate component
Translations
Styles/theme
Source code in VScode web
GraphQL API and ERD

Tippy - Readonly mode (hover)

By integrating React Dev Tools we are able to display name of the React Component and navigate to the source code.

User manual (steps)ScreenshotDescription
1. Move mouse over HTML elementsDraws a bounding box (useful for example when deleting) around HTML element and Tippy
2. Find component needs modificationTippy displays componet name with a button
2. Clicking on the buttonEnter edit mode see below

Hide/show Tippy

Sometimes you need to use your app without Tippy. You can hide and show the Tippy again using Floating Action Button.

User manualScreenshotDescription
1. Click Floating Action ButtonFind button in bottom left corner of the page.
2. Hide tippyMouse over will no longer show tippy.
3. Show tippyYou can show tippy again to see component names and enter edit mode.

Tippy - Edit mode

By clicking Edit button on an element, Wysiwyg enters Edit mode and reveals Tippy Actions, which allows you to:

Menu in Tippy - Edit modeScreenshotDescription
1. Clone element
2. Delete element
3. Inline edit
4. Navigate to code (see VSCode)

Clone React Code

Selecting Clone action from Tippy Actions in editing mode, Lowcode finds selected element's source, and clones it.

User manual (steps)ScreenshotDescription
1. Move mouse over a component
2. Click edit mode
3. Click clone button
info

We just clone create new usage of the component (useful when you need to set different property values for the same component). For now does not do deep copy (duplicate also source code of components) unless we generate code from the template.

Demo Video

Clone & reanme

Wysiwyg also allows you to clone an element, that has __typename component property. This allows you to clone and rename selected element. This feature is useful e.g. when cloning an input in a form. If __typename prop, is available, Clone action opens a dialog with fields for particular entity. Selecting a field from the diaog, Wysiwyg clones that element and replaces all occurences of the old field with the new selected field.

info

__typename is field, that Hasura automatically adds to data, fetched from GraphQL server. It represents object's type name or table's name as a String.

Delete from React Code

Using WYSIWYG tippy you can delete unnecessary components from the menu/navbar. For more complex customizations (customize/delete dashboard, etc.) use embedded VSCode.

User manual (steps)ScreenshotDescription
1. Move mouse over a component
2. Click edit mode
3. Click delete button
info

For now we delete usage of the component but not the source codo of the previously used component. This can by optional feature in future.

Demo Video

Inline Edit Text

Supported for message translation.

User manual (steps)ScreenshotDescription
1. Move mouse over a component
2. Click edit mode
3. Inline edit the text

Transform React component

By selecting Transform action from Tippy Actions while hovering on some field in generated React code, you can transform e.g. plain text to chip.

User manual (steps)ScreenshotDescription
1. Move mouse over a component
2. Click edit mode
3. Click tranform ButtonWysiwyg before transformBefore: Typography component
4. React refreshed automaicallyWysiwyg after transformAfter: Chips component
info

For now we support tranformation between typography and chips component (the functionality will be extended).