Spreadsheet User Interface Overview
This is the screenshot of Keikai spreadsheet’s user interface, each section is introduced as follows:
- The toolbar contains all commonly-used features including controls to set cell’s style, alignment, border, background color, font, font color, merging (and unmerging), sorting, auto filter, protection, grid line visibility and to insert charts, images, and hyperlinks. The 3 leftmost buttons, “New Book”, “Save Book”, and “Export to PDF” are not built-in features as they highly depend on your application settings. You will have to implement the logic by yourself and associate them with the buttons.
- Formula bar
- It displays text or formula of the current selected cell. It can also be used for entering or editing a formula or data.
- Sheet Area
- It displays the content of current selected sheet, this is also the area where users normally work with.
- Context menu
- A context menu is displayed when you right click on a cell, a column header, or a row header. It contains most options of the toolbar and works like a shortcut.
- Sheet bar
Sheet bar displays a list of all sheets in this book. You can navigate to any sheet by clicking on it. You can add a sheet by clicking the + button on the left. If you right click on the sheet bar it pops up a context menu, and allows you to perform sheet operations.
The hamburger menu next to the + icon is the sheet navigation button. It allows users to switch sheets conveniently.
Integrated with ZK Charts
The charts in Keikai sheet is rendered by another ZK product called ZK Charts. When you hover your mouse pointer over the charts, it will show related info in a tooltip.
Rich Text Editing
You can apply multiple styles to a same cell by using the rich text editor. To open a rich-text editor, right click a cell and select “Right Text Edit” in the context menu.
To insert/edit/delete a comment, right click a cell and select corresponding item in the context menu.
Support Different Zoom Levels
You can view Keikai in different browser zoom levels.
Support Various Currencies
Keikai can display different currency symbols such as $, ¥, ₩, €, and HKD in a cell in the currency format.
Localize A Number/Formula Input
Keikai also accepts ‘,’(comma) or ‘.’(dot) as the decimal point for decimal numbers.
When you enter numbers in a cell with the default format (General), Keikai will convert the numbers into corresponding number format for you, for example 1,234,567, $123456, ($123456), ($1,234,567), 1.2% or 123456E10.
Some date formats in Keikai are regional (starting with an asterisk, *, same as Excel ) and some are international.
Regional ones will change its displaying format according to the system locale, but international ones won’t change. 
Keikai can display conditional formatting set in an Excel file. This feature allows you to highlight cells with the given conditions. In the case below, the values in the “Income” column has conditional formatting enabled:
- Modify conditional formatting in Keikai UI is not supported at the moment.
Keikai can read a named range from an xlsx file, so you can specify a named range in a formula like
=SUM(source). To create a named range, please reference javadoc Range::createName.
CTRL+Y (EE only)
CTRL+Z (EE only)
clear copy/cut clipboard
moves the selection box to the edge of the current data region in a sheet.
In the following sections we will introduce the usages of some noticeable features.
Copy & Paste
We recommend you to copy and paste with Ctrl+c and Ctrl+v which works in all cases rather than clicking “paste” button on the toolbar and “paste” item on the context menu.
Inside One Spreadsheet
- Such copy-paste works with Ctrl+c and Ctrl+v, the toolbar, and context menu.
- Keikai has full information at both server and client side, so such copy-paste can retain all cell information including styles, formula, format, and data validation.
- If you copy a whole column/row, Keikai also copies its width and height. But if you are only copying one or multiple cells, Keikai won’t copy the width and height.
- When copy highlight is still active, it copies the highlighted cells, not from the system clipboard. You need to cancel the copy highlight first, then you can paste from a system clipboard.
Between 2 Keikai components
- Copy-paste cell data between 2 Keikai components also rely on the system clipboard, so it’s similar to copy/paste between Keikai and Excel – only pure text is copied.
- If you want to copy a whole sheet to another Keikai component,
Range.cloneSheetFrom. It can clone a sheet from another
Bookobject and is more performant.
Between Keikai and Other Applications like Excel
- Such copy-paste will only work with Ctrl+C and Ctrl+V. The toolbar or context menu “Paste” button only works for copying cells within the same Keikai component and will not work across different applications.
- Such copy-paste is an action between 2 applications (Excel and browser) through a system clipboard. Currently, Keikai only extract text content from a system clipboard, so this copy-paste only pastes “pure text” without any styles.
- For example, a cell in Excel has a formula
3. If you copy this cell and paste it into Keikai, the cell in Keikai gets the calculated
3as its value. Just like you type
3in a Keikai cell.
- If you enter edit mode in Excel and select the text
=sum(1,2)and copy it, and then paste it to a cell in Keikai, Keikai will get the formula, just like you typed a formula into the Keikai cell.
If you copy multiline text (multiple lines with line breaks in between) from an Excel cell and paste it into Keikai, the multiline text will be displayed in multiple cells. For example if the data in an Excel cell contains 3 rows, ROW1, ROW2 and ROW3; after pasting to Keikai A1 cell, the data will be displayed in 3 consecutive cells: A1 (containing ROW1), A2 (containing ROW2), and A3 (containing ROW3).
In addition to standard pasting, Spreadsheet also provides custom pasting options in the toolbar.
You can select “Paste Special” to access all available pasting options in the dialog.
With the “Ascending” and “Descending” function you can sort data by only one column, with “Custom sort” you can sort data by multiple columns.
After selecting “Custom sort” on the toolbar, a dialog appears. You can add sorting criteria up to 3 columns. If your data includes column header, make sure the “My data has headers” option is checked.
Auto fill is a handy feature to fill cells with data in a particular pattern based on selected cells. Text will be copied and numbers and dates will be increased (or decreased) as you drag through.
To use this, select one or more cells and drag the fill handle across or down the cells that you want to fill.
Fill cells by dragging right, left, up, or down.
The supported cell content are number, weekday (full/short), month (full/short), and timestamp.
The Format Cell optin is in the context menu. It provides 10 different categories with a total of 47 formats to apply to the cells.
If you enable “Protect Sheet” against a sheet in Excel, Keikai will keep this setting when reading the Excel file, hence, when you edit a protected sheet, you will see an alert message telling you that the sheet is being protected.
When a sheet is under protection, users can only edit unlocked cells. You can specify which actions are allowed for unlocked cells.
A filter can help you screen out data and work with a subset of data in a range of cells without moving or deleting them.
When you click on the filter icon, there are 3 menu items: Filter, Clear, and Reapply relating to the filter.
Click the funnel-like “Filter” icon to enable/disable filters. When filters are enabled, a drop-down icon will show up in the first row of each column. If you click the drop-down icon, a list of values will appear and you can select from the list as the filtering criteria to apply to your data.
After you select some values, click OK and Spreadsheet will filter those data with selected values. Only the rows with matching criteria will be displayed while others will be hidden.
You can also filter by multiple columns. Filters are additive, which means that each filter is based on the existing filters and further reduces the subset of data.
Click “Clear” removes all applied criteria and displays all data available.
If you added a new data row, you should click “Reapply”. The drop-down list will then update its values to take into account the newly added data.
Filter by search. When you enter text in the search box, it will instantly list and select all matched values. Press “Enter” and Keikai will filter your data with those matched values.
Keikai supports number filter, color filter, date filter, and text filter.
Spreadsheet can read Excel data validation settings including validation criteria of lists, numbers, decimals, dates, or time.
If the validation criteria is a list, the cell will display a drop-down arrow. You can click the icon to select available values.
When you click on the cell with validation, the input message you set will be displayed automatically.
If your input violates validation criteria, an error alert will pop up.
There are 3 types of alerts and each of them has a different icon in the dialog. For an error alert (red icon), you can retry and enter again or cancel to revert back to the original value. For a warning alert (yellow icon), you can click “Yes” to accept the invalid input, or, “No” to edit the invalid input, or “Cancel” to remove the invalid input. For an information alert (blue icon), you can click “OK” to accept the invalid value or “Cancel” to reject it.
- custom validation is not supported yet.