Jump to content

javascript в UniGui


mityi

Recommended Posts

Подскажите как добавить файл в JS в свой проект?

хочу использовать пример из темы http://forums.unigui.com/index.php?/topic/4523-masked-input-plugin/?hl=unidatetimepicker&do=findComment&comment=22461но ни как не могу добавить файл с расширением JS в проект или достаточно его в папке с проектом держать?  С копировал код вставил но выдает ошибку при запуске проекта.

Link to comment
Share on other sites

Здравствуйте,

 

Есть несколько способов включить JS файлы в Ваш проект,

 

1. UniServerModule -> CustomFiles... (например: files/yourJSfile.js)

2. UniAddJSLibrary() в секции инициализации вашего модуля

3. CustomFiles.Add() - до инициализации UniServerModule...

...

 

А для примера из ссылки выше, попробуйте просто добавить в uses - uniEdit и протестировать...

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...