{"id":412,"date":"2015-08-25T22:51:22","date_gmt":"2015-08-25T20:51:22","guid":{"rendered":"http:\/\/dokumentacja.edokumenty.eu\/?page_id=412"},"modified":"2017-11-10T15:06:08","modified_gmt":"2017-11-10T14:06:08","slug":"textinput2","status":"publish","type":"page","link":"http:\/\/developer.edokumenty.eu\/index.php\/dokumentacja-online-systemu-edokumenty\/ui-elements\/widgety\/textinput2\/","title":{"rendered":"TextInput2"},"content":{"rendered":"<p>Zaawansowany edytor tekstowy<\/p>\n<p><a href=\"http:\/\/developer.edokumenty.eu\/wp-content\/uploads\/2015\/12\/TextInput2.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-581\" src=\"http:\/\/developer.edokumenty.eu\/wp-content\/uploads\/2015\/12\/TextInput2.jpg\" alt=\"TextInput2\" width=\"573\" height=\"337\" srcset=\"http:\/\/developer.edokumenty.eu\/wp-content\/uploads\/2015\/12\/TextInput2.jpg 573w, http:\/\/developer.edokumenty.eu\/wp-content\/uploads\/2015\/12\/TextInput2-300x176.jpg 300w\" sizes=\"(max-width: 573px) 100vw, 573px\" \/><\/a><\/p>\n<p>Poni\u017cszy fragment kodu dodaje do okienka dialogowego obiekt TextInput2.<\/p>\n<div id=\"crayon-55dcd3d2ef557301853492\" class=\"crayon-syntax crayon-theme-github crayon-font-monaco crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" minimize scroll-mouseover wrap\">\n<div class=\"code-highlight code-highlight-with-label\" data-label=\"PHP\"><span class=\"js-copy-to-clipboard copy-code\">copy<\/span>\n\t<pre><code class=\"language-php js-code\">\nrequire_once(LIB_PATH.'forms\/TextInput2.inc');\r\n\r\n$editorTxt\u00a0=\u00a0new\u00a0TextInput2($this-&gt;name.'editorTxt');\r\n$editorTxt-&gt;setType('html');\r\n$editorTxt-&gt;top\u00a0=\u00a0$top.'px';\r\n$editorTxt-&gt;left\u00a0=\u00a0'10px';\r\n$editorTxt-&gt;width\u00a0=\u00a0'560px';\r\n$editorTxt-&gt;height\u00a0=\u00a0'180px';\r\n$editorTxt-&gt;style =\u00a0'text-align:right;';\r\n\r\n$this-&gt;add($editorTxt,\u00a0'destrp');\n<\/code><\/pre><\/div>\n<\/div>\n<div class=\"code-highlight code-highlight-with-label\" data-label=\"PHP\"><span class=\"js-copy-to-clipboard copy-code\">copy<\/span>\n\t<pre><code class=\"language-php js-code\">\n$editorTxt-&gt;setValue('przyk\u0142adowa\u00a0warto\u015b\u0107');\r\n$value\u00a0=\u00a0$editorTxt-&gt;getValue();\n<\/code><\/pre><\/div>\n<div id=\"crayon-55dcd3d2ef557301853492\" class=\"crayon-syntax crayon-theme-github crayon-font-monaco crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" minimize scroll-mouseover wrap\">\n<p>Typ inputa ustawiamy za pomoc\u0105 funkcji\u00a0setType. Dost\u0119pne typy:\u00a0json, html, sql, text. Je\u015bli nie u\u017cyjemy tej funkcji, dostaniemy 'jednowierszowe' pole, bez opcji rozszerzenia.<\/p>\n<div class=\"code-highlight code-highlight-with-label\" data-label=\"PHP\"><span class=\"js-copy-to-clipboard copy-code\">copy<\/span>\n\t<pre><code class=\"language-php js-code\">\n$editorTxt-&gt;setType('html');  \/\/json, html, sql, text\n<\/code><\/pre><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Zaawansowany edytor tekstowy Poni\u017cszy fragment kodu dodaje do okienka dialogowego obiekt TextInput2. Typ inputa ustawiamy za pomoc\u0105 funkcji\u00a0setType. Dost\u0119pne typy:\u00a0json, html, sql, text. Je\u015bli nie u\u017cyjemy tej funkcji, dostaniemy 'jednowierszowe' pole, bez opcji rozszerzenia.<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":493,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"tags":[63,64,62,75,30],"_links":{"self":[{"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/pages\/412"}],"collection":[{"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":13,"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/pages\/412\/revisions"}],"predecessor-version":[{"id":3809,"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/pages\/412\/revisions\/3809"}],"up":[{"embeddable":true,"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/pages\/493"}],"wp:attachment":[{"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/developer.edokumenty.eu\/index.php\/wp-json\/wp\/v2\/tags?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}