Extension for integrating the SimpleAutocomplete Svelte component into a Yii 1.1 view.
Just place the code in a subdirectory of your extensions directory. A pre-compiled main.js file is already in the assets directory, and this will be copied to Yii's assets file.
In case that you need to recompile the Svelte code, you can find it in the src directory. The included package.json provides commands for pnpm:
pnpm install
pnpm run build:rollup
This will generate a new main.js file in the assets directory. Remember to delete the main.js file from your Yii assets directory, in case that your assets manager does not replaces it automatically.
Notice that the SimpleAutocomplete component documentation says that you can use the bind sintax as in bind:selectedItem. However, it seems that there is no way to do it from the Yii view. See the example view for details.
MIT License. Please read the LICENSE file.
Copyright (c) 2024 Rodolfo González González.