Skip to content

Commit

Permalink
Demo for radio button, placeholder for password, linux is out for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mhawkinsbasis committed Aug 24, 2023
1 parent 3e82a49 commit 8cd229a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
4 changes: 4 additions & 0 deletions docs/components/fields/password-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ The `PasswordField` class has three constructors:

You can use the `setPasswordReveal` method to control the visibility of the password reveal icon. When set to true, the password reveal icon is visible - otherwise, it is hidden. You can check whether the password reveal icon is visible using the `isPasswordReveal` method. It returns true if the password reveal icon is visible; otherwise, it returns false.

### Placeholder Text

You can set placeholder text for the `PasswordField` using the `setPlaceholder` method. The placeholder text is displayed when the field is empty, helping to prompt the user to enter appropriate input into the `PasswordField`.

### Best Practices

As the `PasswordField` component is often associated with sensitive information, consider the following best practices when using the `PasswordField`:
Expand Down
10 changes: 9 additions & 1 deletion docs/components/radio-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,15 @@ not only clicking, but auto-focus or tab navigation will also check the button.

## Switches

A `RadioButton` can also be set to display as a switch provides which provides alternative visual representation for selecting options. Normally, radio buttons are circular or rounded in shape and indicate a single choice from a group of options. However, a `RadioButton` can be transformed into a switch that resembles a toggle switch or slider using one of two methods:
A `RadioButton` can also be set to display as a switch provides which provides alternative visual representation for selecting options. Normally, radio buttons are circular or rounded in shape and indicate a single choice from a group of options.

<ComponentDemo
path='https://hot.bbx.kitchen/webapp/controlsamples?class=componentdemos.radiobuttondemos.RadioButtonSwitch'
javaC='https://raw.githubusercontent.com/DwcJava/ControlSamples/main/src/main/java/radiobuttondemos/buttondemos/RadioButtonSwitch.java'
cssURL='https://raw.githubusercontent.com/DwcJava/ControlSamples/main/src/main/resources/css/buttonstyles/demo_styles.css'
/>

A `RadioButton` can be transformed into a switch that resembles a toggle switch or slider using one of two methods:

1. **The Factory Method**: The RadioButton can be created using the following Factory methods:

Expand Down
11 changes: 7 additions & 4 deletions docs/installation/docker_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ It is recommended to download the latest version of Windows Subsystem for Linux.
** 3. Verify Installation: **
>- Open a terminal and run the command `docker --version` to verify that Docker is installed and working correctly.
### Linux
<!-- ### Linux
** 1. Install Docker Engine **
>- Visit the Docker Desktop for Mac download page: [Docker for Linux](https://docs.docker.com/engine/install/)
** 2. Verify Installation: **
>- Open a terminal and run the command `docker --version` to verify that Docker is installed and working correctly.
>- Open a terminal and run the command `docker --version` to verify that Docker is installed and working correctly. -->

## Configuration

Once Docker has been downloaded, search for the latest DWCJ image, which is currently under the name `dwcjava/sandbox`.
Once Docker Desktop has been downloaded, search for the latest DWCJ image, which is currently under the name `dwcjava/sandbox`.

![DWCJ Image Search](./_images/docker/1.png)

Expand Down Expand Up @@ -117,13 +117,16 @@ If your POM file does not have a `<plugins>` section, create one.

Once an entry similar to the one above has been created, customize the following information:

- Change the `<deployurl>` entry to use the port number that you match the Host port that you configured for your container
- Change the `<deployurl>` entry to use the port number that you match the **Host port** that you configured for your container
in the previous step.

- Ensure that the `<classname>` entry matches the name of the application you want to run.

- If your `<username>` and `<password>` credentials are different for your installation of BBj, change these.

:::info
The [HelloWorldJava](https://github.com/DwcJava/HelloWorldJava) project will come with the POM file already mostly configured - with other settings remaining the same, only the `<deployurl>` tag will need to be changed.
:::

### Launching the Application

Expand Down

0 comments on commit 8cd229a

Please sign in to comment.