Dart DocumentationiceAce

Ace class

class Ace extends jsw.TypedProxy {
 static Ace edit(dynamic el) => Ace.cast(js.context['ace'].edit(el));

 static Ace cast(js.Proxy proxy) =>
   proxy == null ? null : new Ace.fromProxy(proxy);

 Ace.fromProxy(js.Proxy proxy) : super.fromProxy(proxy);

 set fontSize(String size) => $unsafe.setFontSize(size);
 set theme(String theme) => $unsafe.setTheme(theme);
 set printMarginColumn(bool b) => $unsafe.setPrintMarginColumn(b);
 set displayIndentGuides(bool b) => $unsafe.setDisplayIndentGuides(b);

 set value(String content) => $unsafe.setValue(content, -1);
 String get value => $unsafe.getValue();
 void focus() => $unsafe.focus();

 AceSession get session => AceSession.cast($unsafe.getSession());

 void toggleEmacs() {
   if ($unsafe.getKeyboardHandler() == commandManager) {
     $unsafe.setKeyboardHandler(emacsManager);
   }
   else {
     $unsafe.setKeyboardHandler(commandManager);
   }
 }

 var _commandManager;
 get commandManager {
   if (_commandManager != null) return _commandManager;
   _commandManager = $unsafe.getKeyboardHandler();
   js.retain(_commandManager);
   return _commandManager;
 }

 var _emacsManager;
 get emacsManager {
   if (_emacsManager != null) return _emacsManager;
   _emacsManager = js.context.ace.require("ace/keyboard/emacs").handler;
   js.retain(_emacsManager);
   return _emacsManager;
 }
}

Extends

TypedProxy > Ace

Static Methods

Ace edit(el) #

static Ace edit(dynamic el) => Ace.cast(js.context['ace'].edit(el));

Ace cast(Proxy proxy) #

static Ace cast(js.Proxy proxy) =>
 proxy == null ? null : new Ace.fromProxy(proxy);

Constructors

new Ace.fromProxy(Proxy proxy) #

Ace.fromProxy(js.Proxy proxy) : super.fromProxy(proxy);

Properties

final Proxy $unsafe #

inherited from TypedProxy
final Proxy $unsafe

final commandManager #

get commandManager {
 if (_commandManager != null) return _commandManager;
 _commandManager = $unsafe.getKeyboardHandler();
 js.retain(_commandManager);
 return _commandManager;
}

dynamic set displayIndentGuides(bool b) #

set displayIndentGuides(bool b) => $unsafe.setDisplayIndentGuides(b);

final emacsManager #

get emacsManager {
 if (_emacsManager != null) return _emacsManager;
 _emacsManager = js.context.ace.require("ace/keyboard/emacs").handler;
 js.retain(_emacsManager);
 return _emacsManager;
}

dynamic set fontSize(String size) #

set fontSize(String size) => $unsafe.setFontSize(size);

dynamic set printMarginColumn(bool b) #

set printMarginColumn(bool b) => $unsafe.setPrintMarginColumn(b);

final AceSession session #

AceSession get session => AceSession.cast($unsafe.getSession());

dynamic set theme(String theme) #

set theme(String theme) => $unsafe.setTheme(theme);

String value #

String get value => $unsafe.getValue();
set value(String content) => $unsafe.setValue(content, -1);

Methods

void focus() #

void focus() => $unsafe.focus();

void toggleEmacs() #

void toggleEmacs() {
 if ($unsafe.getKeyboardHandler() == commandManager) {
   $unsafe.setKeyboardHandler(emacsManager);
 }
 else {
   $unsafe.setKeyboardHandler(commandManager);
 }
}

dynamic toJs() #

inherited from TypedProxy
@override dynamic toJs() => $unsafe;