https://github.com/cactoes/reflection_js_impl
A javscript / typescript header for the reflection -ui c++ library
https://github.com/cactoes/reflection_js_impl
cpp javascript nodejs npm-package typescript ui
Last synced: 5 months ago
JSON representation
A javscript / typescript header for the reflection -ui c++ library
- Host: GitHub
- URL: https://github.com/cactoes/reflection_js_impl
- Owner: cactoes
- Created: 2024-11-17T00:08:08.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-17T02:25:17.000Z (over 1 year ago)
- Last Synced: 2025-10-24T03:39:59.250Z (9 months ago)
- Topics: cpp, javascript, nodejs, npm-package, typescript, ui
- Language: TypeScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reflection-ui
JS header for [https://github.com/cactoes/reflection](https://github.com/cactoes/reflection)
## Installation
```powershell
PS> npm install reflection_ui
```
## Usage
[!] Important, this library does not take care of the windows message loop
you will have to do that yourself, see [example](./example/example.ts#L6)
### Initialization
Make sure before calling any other reflection function that init_reflection() has been called
```javascript
import * as reflection from "reflection_ui";
// or const reflection = require("reflection_ui");
// initialize the dll & load the library
reflection.init_reflection();
```
## Docs
## init_reflection
Sets up the dll environment
### Syntax
```typescript
function init_reflection(lib_path: string): void;
```
### Params
`lib_path`
Type: **string**
This argument is optional and only needs to be set if you have a custom build of reflection
## The rest
* [browser_window](./docs/browser_window.md#browser_window)
* [component](./docs/component.md#component)
* [label](./docs/label.md#label)
* [button](./docs/button.md#button)
* [checkbox](./docs/checkbox.md#checkbox)
* [selector](./docs/selector.md#selector)
* [slider](./docs/slider.md#slider)
* [image](./docs/image.md#image)
* [folder_selector](./docs/folder_selector.md#folder_selector)
* [list](./docs/list.md#list)